Version: 2018.4
LanguageEnglish
  • C#

Justify

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

This enumeration contains values to control how children are justified during layout.

The main axis of a container is the primary axis on which children are laid out, that is, its flex direction.

Properties

FlexStartItems are justified towards the beginning of the main axis.
CenterItems are centered.
FlexEndItems are justified towards the end of the layout direction.
SpaceBetweenItems are evenly distributed in the line; first item is at the beginning of the line, last item is at the end.
SpaceAroundItems are evenly distributed in the line with extra space on each end of the line.