PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

FillDirection

UIGridStyleLayout

FillDirection

The FillDirection property determines the axis in which UI elements are laid out. Horizontal will arrange elements from left to right, while Vertical will arrange from top to bottom. To reverse elements (for instance, arrange right to left) you will need to reverse the sorting. This can be done by negating the child UI elements’ GuiObject/LayoutOrder values when UIGridStyleLayout/SortOrder is set to LayoutOrder.


Code Samples


UIGridLayout Fill Directions and Alignments

This code sample showcases the different alignments and fill directions that a UIGridLayout may use by iterating over the three enums using for loops.