I need to change the expanding direction of the VerticalLayoutGroup. With the default behavior the group will expand downstairs. What i want is, that the group will expand upstairs.
The expected behavior is described in this Video. (Link to the answer on stackoverflow https://mcmap.net/q/1738091/-how-to-change-direction-of-expanding-vertical-layout-group-unity3d)
The solution on the link is, to rotate the LayoutGroup about 180°. Now this seems more like a workaround, because all childs have to be rotated as well. The solution suggested by this one will not give the expected behavior shown in the video.
I added the ContentSizeFitter to the LayoutGroup like described in this link in the Unity Answers. Now the LayoutGroup will expand in both directions (upstairs and downstairs).
Is there any solution to accomplish the desired behavior without rotating the LayoutGroup?
Edit: I also noticed a downside from the rotating approach: The Billboard Script from the MixedRealityToolkit will force the LayoutGroup to rotate back to 0°.