LayoutGroup
Arranges child nodes in a horizontal row or vertical column with configurable spacing and alignment
Extends Group
The LayoutGroup node class manages the position of its child nodes by arranging them in a row from left to right (horizontal layout), or in a column from top to bottom (vertical layout). Fields provide options to control the spacing between children, the horizontal and vertical alignment, and the margins around the edges of the group.
Fields
| Field | Type | Default | Access Permission | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| layoutDirection | string | vert | READ_WRITE | Controls the layout direction.
| ||||||||||||||||||||||||
| horizAlignment | string | left | READ_WRITE | Specifies the alignment point in the horizontal direction. The effect of the value set depends on whether the layoutDirection field value is set to horiz or vert.
| ||||||||||||||||||||||||
| vertAlignment | string | top | READ_WRITE | Specifies the alignment point in the vertical direction. The effect of the value set depends on whether the layoutDirection field value is set to horiz or vert.
| ||||||||||||||||||||||||
| itemSpacings | array of floats | [ ] | READ_WRITE | Controls the spacing before or after each child in the layout direction. By default, no space is added between the children. | ||||||||||||||||||||||||
| addItemSpacingAfterChild | Boolean | true | READ_WRITE | Controls how the spaces specified in the itemSpacings field are inserted. By default, the field value is set to true. This causes the specified spaces to be inserted after the child is positioned. If the field value is set to false, the specified item space is inserted before the child is positioned. |
Updated 1 day ago
Did this page help you?