Select your preferred scripting language. All code snippets will be displayed in this language.
enumeration
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.
CloseFor 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.
CloseThis 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.
FlexStart | Items are justified towards the beginning of the main axis. |
Center | Items are centered. |
FlexEnd | Items are justified towards the end of the layout direction. |
SpaceBetween | Items are evenly distributed in the line; first item is at the beginning of the line, last item is at the end. |
SpaceAround | Items are evenly distributed in the line with extra space on each end of the line. |