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"

GetDesiredSize of Text Widget Return 0

Is it true that text widget in Blueprint, GetDesiredSize() always return zero regardless of any text entered in that widget?

Here's an unresolved issue as well:


Product Version: UE 4.13
more ▼

asked Dec 01 '16 at 02:49 PM in Bug Reports

avatar image

261 22 34 42

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

1 answer: sort voted first

Hello Pelangi,

After doing a bit of digging I was able to find a post with information on this subject. I have provided a link below. I hope that this information helps. As a note, you maybe getting a return of zero because the the widget has not been fully added to the screen when you are calling "Get Desired Size". There is a chance that calling this on Event Construct will return 0,0 because it is being called before the widget you are testing has been fully added. As a test you can call this on tick to see if you are given any values. As stated above, see the linked thread for more information.

Link: https://answers.unrealengine.com/questions/149473/umg-widget-getdesiredsize.html

Make it a great day

more ▼

answered Dec 01 '16 at 04:34 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 525

avatar image inedible.red Jun 03 '19 at 08:48 AM

This can be remedied by using "Force Layout Prepass" before "get desired size"

(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