Reverse Direction of Vertical Layout Group

I have a chat window that has chat items I would like to stack on top of each other (as opposed to beneath one another). How can I achieve this ? I was able to use the Grid control however it does not support dynamic heights of the layout element like the Vertical/Horizontal Layout groups.

Any advice ?

You could change the index of new objects:

yourgameobject.transform.SetAsFirstSibling();

That should reverse the order in the layout group.

2 Likes