new GridContainer()
GridContainer is a container that arranges its children in a grid.
Name | Type | Default | Description |
---|---|---|---|
columns | number | 1 | The number of columns in the grid. |
rows | number | 1 | The number of rows in the grid. |
spacing | number | 0 | The spacing between the children. |
- Source
Extends
Members
columns :number
The number of columns in the grid.
Type:
- number
- Source
(readonly) properties
The entity that this component is attached to.
- Inherited From
- Source
rows :number
The number of rows in the grid.
Type:
- number
- Source
spacing :number
Spacing between the children.
Type:
- number
- Source
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.
- Overrides