UIFlexLayout
Flexible layout that arranges children with spacing, wrapping, and distribution rules.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIFlexLayoutcomponent.
How to Use
- Get the component with
myObject.findComponent(UIFlexLayout.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIFlexLayout comp = myObject.findComponent(UIFlexLayout.class);
if (comp != null) {
}