VBoxContainer

new VBoxContainer()

VerticalBoxContainer or VBoxContainer is a container that arranges its children vertically.

Properties
NameTypeDefaultDescription
spacingnumber0

The spacing between the children.

Extends

Members

(readonly) properties

The entity that this component is attached to.

Inherited From

spacing

The spacing between the children.

Methods

deserialize(props)

Populates the component properties from a data object. Override this method for custom property handling.

Parameters:
NameTypeDescription
propsobject

The properties object (usually from JSON).

Inherited From

Update()

Update all the children's UITransform components. Every time there is a change in the children,or sizes of the container, this method should be called.