Get size of auto-sized widget
Hi there, I'm trying to get the size of a widget. I know I can do this like in the example below:
However, this doesn't work with an auto-sized widget ("Size to content" inside of a canvas), because it always returns the size the widget has before it gets auto-sized. How can I get the final size the widget has when it's displayed with auto size?
asked Mar 14 '18 at 01:44 PM in Blueprint Scripting
Just call the ForceLayoutPrepass BEFORE you return the size of your autosized widget. :)
answered May 04 '19 at 06:55 PM
Get Desired Size is what you are looking for. But you need to call it after some delay.
answered Nov 06 '18 at 04:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here