Third part of a series covering the theory of the RectTransform and how to use anchors, pivot, offsets and position to achieve flexible layout controls that can adapt to the parent UI object, screen resolution / orientation or be fixed. Techniques shown help control the aspects of UI layout with ways to pin panels, buttons, text to points of reference on the parent UI panel.
The AnimatableLayout component is provided in the project below under the MIT license and can be used in Unity projects. It animates changing layout from expanded layout dimensions to collapsed dimensions with an alignment of either left or right.
https://github.com/WazzaMo/unity-code...