UIGridLayout

UIGridLayout : UIGridStyleLayout

Overview

Properties

AbsoluteCellCount

Vector2

Read-only number of cells that currently fit within the layout’s visible area (X columns, Y rows) based on CellSize, CellPadding, and the parent container size.

Code Samples

AbsoluteCellSize

Vector2

Resolved cell size in pixels after UDim2 CellSize and scaling are applied. Useful for calculating exact placement or responsive behaviors.

Code Samples

CellPadding

UDim2

Spacing between cells in the grid. X controls horizontal spacing; Y controls vertical spacing. Supports scale and offset via UDim2.

Code Samples

CellSize

UDim2

The size of each grid cell. Uses UDim2 to support scale and offset, allowing responsive layouts across different screen sizes.

Code Samples

FillDirectionMaxCells

number

Maximum number of cells to place along the primary fill direction before wrapping to the next row or column. Set 0 for no limit.

Code Samples

Methods

Events

Last updated