UIGridLayout
Arranges children in a grid with configurable cell size and spacing.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIGridLayoutcomponent.
How to Use
- Get the component with
myObject.findComponent(UIGridLayout.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIGridLayout comp = myObject.findComponent(UIGridLayout.class);
if (comp != null) {
}