Scrollbar for dynamic content

I’m having trouble with setting up a scrollbar for dynamic content. After some pain I figured out it’s related to the rect transform height - it’s not updated automatically when the content changes. How do I handle that? I know how to set it programatically, but I have no idea how to measure the content’s actual size. In my case, the contents are two Text objects (header and actual, long text).

Did you try the content fitter + layout element?

1 Like

Yep, that tid the trick! Thank you! :slight_smile:

Now I just need to figure out how to set scrollbar value after the layout magic occurs.