Skip to content
Docs
Open Promoeyes

grid

UI item · inside ui / ui3dlayoutsset 4× in templates and rigs

A grid container on a UI stage: it draws nothing and packs its children row by row into `columns` equal-width cells.

grid(columns=1 gap=1 w=1)

Attributes

columnsnumberNumber of columns (default the square root of the child count, rounded up).4×
gapnumberSpace between the cells, in stage units; two values are the row gap, then the column gap.4×
wnumber2×
origintexte.g. top-left1×
xnumber1×
ynumber1×

Where it goes

Written under

Holds