Skip to main content

Layout Group

The layout group component enables an entity to specify the size and position of child element components.

For more details, see the Layout Groups section.

LayoutGroup component

Properties

PropertyDescription
OrientationWhether the layout should run horizontally or vertically.
ReverseXReverses the order of children along the x-axis.
ReverseYReverses the order of children along the y-axis.
AlignmentSpecifies the horizontal and vertical alignment of child elements. Values range from 0 to 1, where [0, 0] is bottom-left and [1, 1] is top-right.
PaddingPadding to apply inside the container before placing children. Specified as left, bottom, right, top values.
SpacingSpacing to apply between each child element.
Width FittingThe fitting logic to apply when placing and scaling child elements.
Height FittingThe fitting logic to apply when placing and scaling child elements.
WrapWhether to wrap children to new rows/columns when they exceed the container size.

Scripting Interface

You can control the layout group component's properties using a script component. The layout group component's scripting interface is here.