Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

GridAutoFlow

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Controls how the auto-placement algorithm works for a CSS Grid container, specifying exactly how auto-placed items get flowed into the grid.

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

Properties

Property Description
Row Items are placed by filling each row in turn, adding new rows as necessary. This is the default.
Column Items are placed by filling each column in turn, adding new columns as necessary.
RowDense Like GridAutoFlow.Row, but uses a dense packing algorithm that fills holes earlier in the grid.
ColumnDense Like GridAutoFlow.Column, but uses a dense packing algorithm that fills holes earlier in the grid.