Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is there a Event / hook / function launched after automatic sizing in UMG / Slate ?


I would like to get the desized size of a popup widget I made. (The "Get Desired Size" BP node exist for it). But some of my widget are dynamically sized if we can say. They use "size to content" and some text block use the "auto wrap text" setting. So they depend on their content.

From this answer hub (https://answers.unrealengine.com/questions/208580/umg-visual-artifacts-when-using-auto-wrap-text.html), and from the description of the "Get Desired Size" node, I see that i can only get this popup's size after all the auto/dynamic sizing is done !

For now, I use a "Custom Event" which I launch after a fixed delay ("Set timer by event" node), after the "Event Construct" of my popup widget. But I'm trying to put this delay at his minimum, but sometimes, these automatic/dynamic sizing process takes more and my desired size is then not good. I still can put a longer delay to solve it.

But I wanted to know if it exists an Event, or hook or function that is triggered after a dynamic sizing is done to a widget ?

My actual BP¨solution : alt text

Thank your for answering :)

Product Version: Not Selected
bp1.png (171.2 kB)
more ▼

asked May 29 '19 at 01:38 PM in Blueprint Scripting

avatar image

20 1 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Force Layout Prepass and then get desired size. Your timer waits for a tick. Prepass forces a tick now. It will also get rid of most (if not all) text formatting resize / wrap qirks.

more ▼

answered May 29 '19 at 03:36 PM

avatar image

15.3k 77 26 64

avatar image Mush. May 29 '19 at 07:25 PM

Yes ! :)

Thanks a lot ! It works perfectly ! It's way better like this and helps me for another thing ! So many BP nodes, fortunately, there is this forum / hub !

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question