Trying to make a scroll view #45
Replies: 1 comment
-
Moved to here instead https://discussions.unity.com/t/flexbox-in-unity-ui/934362 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hiya I am trying to setup a scroll view but I'm struggling with child objects max size seeming to be restricted by the parents size. I have a simple setup, a parent gameobject to act as a viewport and a child content object with two textmeshpro objects as its children.




If the viewport height is larger than the child height, everything is great. In this image, green is the viewport and blueish is the content
As soon as the viewport height goes smaller than the size of the child content, everything gets weird. In the image below you can see the content has incorrectly shrunk.
Smaller still and the child text objects start to shrink based on the now shrunk content parent
I read that yoga will restrict child size to the size of the parent however there must be a way around this? How is it possible to make a scrollview without being able to keep the child content size unrestricted?
I would be very grateful of any help that could be provided!
Beta Was this translation helpful? Give feedback.
All reactions