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
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum GridAutoFlow
Remarks
It only takes effect on an element with DisplayStyle.Grid.
Fields
Value | Description |
|---|---|
| Column | Items are placed by filling each column in turn, adding new columns as necessary. |
| ColumnDense | Like GridAutoFlow.Column, but uses a dense packing algorithm that fills holes earlier in the grid. |
| Row | Items are placed by filling each row in turn, adding new rows as necessary. This is the default. |
| RowDense | Like GridAutoFlow.Row, but uses a dense packing algorithm that fills holes earlier in the grid. |