UIVerticalLayout

Classes

UIVerticalLayout : Component

Note

UIFrame component is automatically added to the node if it is not already present

This component arranges node’s children vertically using specified spacing, padding and alignment.

If child node doesn’t have UIFrame component, it won’t participate in layouting.

Note

To work properly, UICanvas component is required in one of the parent nodes.

Fields:
  • alignment : LayoutAlignment - Alignment of the layout within the parent frame. Default is TopLeft.

  • spacing : float - Spacing between children.

  • padding : float4 - Padding in pixels, float4(left, top, right, bottom).

  • childForceExpandWidth : bool - If true, child frames will expand to fill the available width.

  • childForceExpandHeight : bool - If true, last child frame will expand to fill the available height.

UIVerticalLayout.layout()

Applies vertical layouting to the children of the node.

Note

This function is called automatically every frame.

UIVerticalLayout.apply(childrenNodes: array<NodeId>#)

Applies vertical layouting to the given children.

Arguments:
  • childrenNodes : array< NodeId >#