A widget that contains other widgets and orders its children vertically
Return the child widget at the given index. Returns undefined if no child exists at the index.
Index where to get the child widget
Return the game object that this UI element is attached to. Returns undefined if the element isn't attached to a game object.
Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.
Return whether the widget is currently enabled (see setEnabled).
Remove the given child
The widget to remove
Remove the child at the given index
Index where to remove the child widget
Set distance (margin) between child widgets.
Widget distance. Default: 1
Set whether the widget is enabled. When a widget is disabled, users can't interact with it and it is greyed out. When a widget that contains other widgets (like VerticalBox) is disabled, all its children behave as if disabled, too. By default, widgets are enabled.
Whether to enable the widget.
Set if the size of each widget should be equal instead of each widget using its default size.
Should widget sizes be equal? Default: false