Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Pre calculate UI size

$
0
0
Hi there,

is it possible to precompute the size of a layout control in Unity UI?

Example:

I have a VerticalLayoutGroup with 4 buttons inside. I want to know how much space the vertical Layoutgroup needs if I would add another button (or any other control).

I tried to add the 5. button, call LayoutRebuilder.ForceRebuildLayoutImmediate() and remove the button again. But the preferred...

Pre calculate UI size

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>