AutoLayoutRectTransform¶
If you tried to play with the CommunityHub, you may have observed that its panels could overlap your game’s user interface.
You can address this issue, with a few steps:
- Make your ui elements children of a single
RectTransform
- Add an
AutoLayoutRectTransform
component to this root node
This component will automatically register your root node to the CommunityHub.
CoreApplication.Instance.CommunityHub.AddTransformToAutoLayout(...);
Note that the layout takes into account the Safe Area.