Interface: GridLayoutGroupCommonDefaultedOptions
Defined in: ui/components/layout-group-component.ts:184
Fields of GridLayoutGroupEcsComponent shared by every constraint,
each with a sensible default; callers may omit these.
Properties
cellAlignment
cellAlignment:
Vector2
Defined in: ui/components/layout-group-component.ts:219
Where a cell's own content sits within its column/row when that axis's
columnWidthMode/rowHeightMode is 'content' and this specific cell
is narrower/shorter than the shared column/row size. No effect on a
'fixed' axis, where a cell always fills cellSize exactly. Defaults
to uiAlignments.topLeft.
cellSize
cellSize:
Vector2
Defined in: ui/components/layout-group-component.ts:192
Every cell's fixed size - unlike an axis layout group, a grid never
measures its children; each simply occupies one cellSize-sized cell.
childAlignment
childAlignment:
Vector2
Defined in: ui/components/layout-group-component.ts:198
Where the whole grid block sits within any leftover content-box space.
constraintCount
constraintCount:
number
Defined in: ui/components/layout-group-component.ts:210
The fixed column (or row) count when constraint is
fixedColumnCount/fixedRowCount. Unused for flexible.
padding
padding:
UiLayoutGroupPadding
Defined in: ui/components/layout-group-component.ts:186
Inset between this group's rect and the content box its cells fill.
spacing
spacing:
Vector2
Defined in: ui/components/layout-group-component.ts:195
Gap, in reference pixels, between adjacent cells on each axis.
startAxis
startAxis:
UiGridLayoutGroupAxis
Defined in: ui/components/layout-group-component.ts:204
Which axis is filled first (columns, then wrapping to a new row, or vice versa).
startCorner
startCorner:
UiGridLayoutGroupCorner
Defined in: ui/components/layout-group-component.ts:201
Which corner cell index 0 starts from.