- Home /
Question by
Raja-Unity · Nov 12, 2017 at 06:23 PM ·
uitextsizepositioningscrolling
How to make parent UI element change size to fit children?
I'm putting a Scroll Rect on the bottom of the screen that contains the information about a selected gameobject in the game. The content on the bottom will show things like health, damage done to enemies and a description about the GameObject. The description has a ContentSizeFitter to fit with the amount of text there is. I made a GameObject called "ContentHolder" that holds all the content as children and has the ScrollRect as it's parent. I want the size of ContentHolder to fit with the children UI elements.
How would I do this ?
Comment