I’m working on a texting simulator game, so almost everything is UI based (blech, I know). Something that’s really stumped me is the Scroll Rect component not working correctly. If I try to scroll up on the texting screen, I can do that for a moment, but then the content gets dragged back down again, almost like it’s bottom-heavy. This sucks because it means that if players forget what a certain character said during a previous conversation, or if the texts are coming in too fast for them to read, they can’t scroll back
In my hierarchy, I have a Scroll Rect object. Nested under that is a “content holder” that contains, as childed gameobjects, an object for each conversation. The content holder is specified as the Scroll Rect’s content. I’m pretty sure something is off on either my anchor presets or pivots, or I have a box checked on a layout group that shouldn’t be. But I have tried SO many configurations and none of them fix the problem.
you should add component “Vertical Group Layout” and “Context Size Fitter” on Content, and set
value “Horizontal Fit” and “Vertical Fit” as “Min size”.,You should add component “Context Size Fitter” on Content, and set both value “min size”