0
votes

I am for the first time using the scroll Rect system in the Unity UI, and for some tasks it works just fine, but... If I want to make a wall-like feature, like facebook story wall, I am having a bit of difficulties?

In the wall system, each object in the scroll rect could have different sizes. if i use the "Grid Layout Group" each object would have a predefined size and that would not work.

I then try by using the "Vertical Layout Group" and the "Content Size Fitter" on the content holder, but this doesn't work either...

How do I ensure that the objects is put under each other and the object could be in different sizes?

Really hoping for help on this and thanks in advance :-)

1

1 Answers

1
votes

You want a UI hiearchy something like:

enter image description here

"Layout Group" will have a VerticalLayoutGroup object attached and setup something like:

enter image description here

And your repeating text objects will be setup like:

enter image description here

Will yield a result of:

enter image description here