You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a FlexLayout component to the UI object that will layout its descendants (children, grandchildren, etc...)
Add FlexLayout components to the descendants that will be layed out by the root FlexLayouts.
Configure the layout properties as necessary and see all changes live in edit mode.
Enjoy 🍾
All properties can be set in the Inspector as well as by code and the layout will be automatically refreshed.
You can set several values in code and the layout will be calculated only once per frame.
To learn more about the properties supported by FlexLayout, check out the Yoga documentation in the "Properties" section: https://yogalayout.dev/docs
You can also set the layout engine configurations by creating FlexLayoutConfig assets and setting them to FlexLayout's "Configuration" property.
These configurations include toggling of experimental features and controlling how Yoga rounds floating point values using the "Point Scale Factor" property.
About
Flexbox layout support for Unity UI using the Yoga layout engine