Programming Unity UI - the Rescaler component and Controlling Layout

Опубликовано: 29 Сентябрь 2024
на канале: DesignerTech
62
1

Second 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 Rescaler component rescales objects and pins them to a corner with a margin gap. This provides an example of how to manipulate the RectTransform using utility classes in the project I share below, on GitHub. The video shows how to create a new scene and make use of the Rescaler for a dynamic UI or menu.

Github Project:
https://github.com/WazzaMo/unity-code...