HBoxContainer

new HBoxContainer()

Horizontal Box Container or HBoxContainer is a container that arranges its children horizontally.

Properties
NameTypeDefaultDescription
spacingnumber0

The spacing between the children.

Extends

Members

(readonly) properties

The entity that this component is attached to.

Inherited From

spacing :number

Space between the children.

Type:
  • number

Methods

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.