How to get scrollbox size

Hello.
GetDesiredSize Node returns its Content Size, not Real Size of ScrollBox.
How can I get scrollbox size?

1 Like

Try it like so:

There may be no other way for the Scroll Box in particular as it needs to know the size of its children. If the above gives you incorrect data, you may need to manually force a pre-pass before calling it.


That’s unless the Scroll Box sits directly in the canvas - in this instance you could cast the slot to a Canvas Slot and get its size instead.

Thank you very much!

1 Like