Attention: Here be dragons (unstable version)
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Redot.
Checking the stable version of the documentation...
GridContainer
Inherits: Container < Control < CanvasItem < Node < Object
A container that arranges its child controls in a grid layout.
Description
GridContainer arranges its child controls in a grid layout. The number of columns is specified by the columns property, whereas the number of rows depends on how many are needed for the child controls. The number of rows and columns is preserved for every size of the container.
Note: GridContainer only works with child nodes inheriting from Control. It won't rearrange child nodes inheriting from Node2D.
Tutorials
Properties
|
Theme Properties
|
||
|
Property Descriptions
The number of columns in the GridContainer. If modified, GridContainer reorders its Control-derived children to accommodate the new layout.
Theme Property Descriptions
The horizontal separation of child nodes.
The vertical separation of child nodes.