new HBoxContainer()
Horizontal Box Container or HBoxContainer is a container that arranges its children horizontally.
| Name | Type | Default | Description |
|---|---|---|---|
spacing | number | 0 | The spacing between the children. |
- Source
Extends
Members
(readonly) properties
The entity that this component is attached to.
- Inherited From
- Source
spacing :number
Space between the children.
Type:
- number
- Source
Methods
deserialize(props)
Populates the component properties from a data object. Override this method for custom property handling.
Parameters:
| Name | Type | Description |
|---|---|---|
props | object | The properties object (usually from JSON). |
- Inherited From
- Source
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.
- Overrides