Return the number of padding pixels on the left of the child widget
Return the child widget. Returns undefined if no child has been set for this LayoutBox
Return the horizontal alignment of the child widget within the LayoutBox, as defined by HorizontalAlignment
Return the number of padding pixels on the left of the child widget
Return the maximum height that this box should get. Returns -1 if no maximum is set.
Return the maximum width that this box should get. Returns -1 if no maximum is set.
Return the minimum height that this box should get.
Return the minimum width that this box should get.
Return the exact height that this box should get. Returns -1 if no override is set.
Return the exact width that this box should get. Returns -1 if no override is set.
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 the number of padding pixels on the left of the child widget
Return the number of padding pixels on the left of the child widget
Return the vertical alignment of the child widget within the LayoutBox, as defined by VerticalAlignment
Return whether the widget is currently enabled (see setEnabled).
Return whether the widget is currently visible (see setVisible).
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 the horizontal alignment of the child widget within the LayoutBox, as defined by HorizontalAlignment. Default: Fill
Set the maximum height that this box should get. Use a negative value to disable the maximum (disabled by default).
Set the maximum width that this box should get. Use a negative value to disable the maximum (disabled by default).
Set the minimum height that this box should get (0 by default).
Set the minimum width that this box should get (0 by default).
Set the exact height that this box should get. Use a negative value to disable the override (disabled by default).
Set the exact width that this box should get. Use a negative value to disable the override (disabled by default).
Set how many pixels of padding to add around the child widget. No padding is added by default. You can use negative values to grow the widget beyond it's allotted size, or to reduce padding within parent widgets (like a ContentButton).
Padding on the left of the child widget. Default: 0
Padding on the right of the child widget. Default: 0
Padding above the child widget. Default: 0
Padding below the child widget. Default: 0
Set the vertical alignment of the child widget within the LayoutBox, as defined by VerticalAlignment. Default: Fill
Set whether the widget is visible. When a widget that contains other widgets (like VerticalBox) is invisible, all its children are invisible, too. The layout of widgets is updated when visibility changes, and invisible widgets are treated as if they don't exist.
Whether the widget is visible.
An invisible element that contains another widget and adds size and layout information. The size properties do not have an effect when the LayoutBox is placed directly on a Canvas, because the size is already fixed by the coordinates on the Canvas.