Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GridAutoFlow

Controls how the auto-placement algorithm works for a CSS Grid container, specifying exactly how auto-placed items get flowed into the grid.
Read time 1 minuteLast updated 12 days ago

Definition

public enum GridAutoFlow

Remarks

It only takes effect on an element with DisplayStyle.Grid.

Fields

Value

Description

ColumnItems are placed by filling each column in turn, adding new columns as necessary.
ColumnDenseLike GridAutoFlow.Column, but uses a dense packing algorithm that fills holes earlier in the grid.
RowItems are placed by filling each row in turn, adding new rows as necessary. This is the default.
RowDenseLike GridAutoFlow.Row, but uses a dense packing algorithm that fills holes earlier in the grid.