I can’t seem to get my scroll rect working with dynamic content. The scroll rect itself will have one element, and that one elements height will vary.

That one element has a vertical layout group. Essentially I want one button followed by a container that contains a dynamic amount of text.

So the vertical layout group of my scrollable element has a back button with a layout element component with a min height being set and a preferred height, and a flexible width.

Then comes another element, the container of my text, that has a content size fitter on it with vertical fit set to preferred size, and a vertical layout group with control child size height and width set. And childed to that is a text mesh pro object with a layout element set to flexible width and height.

The content that contains my element has a content size fitter on it with vertical fit set to preferred size. I can’t get the scroll rect to move tho when set to clamped, when it is unclamped it snaps back.

In my picture Viewport is my viewport, scrollablecontent is my content.

I got it working by having both a content size fitter and vertical scroll rect on my scrollable content.