Expand parent size based on it child object

I create scroll view with content in which dynamiclly added object like a text. I wanna that content object dynamicly change own height based on it childs. How I can do this? Maybe adding some components?

Please help.

Usually the way to do it is by adding a content size fitter component. Beware that only elements that are part of a layout, have a layoutElement component defining size or are either images or text will be counted.

I don’t think I missed any but please someone correct me if I’m wrong. I usually work the gui in a WYSIWYG way so sometimes it’s trial and error xD

4 Likes