Class · inherits UILayout
UIGridStyleLayout
The base class for grid style UI layouts.
About UIGridStyleLayout
The base class for grid style UI layouts.
Properties 5
AbsoluteContentSize
: Vector2ReadOnlyNotReplicatedThe absolute size of space being taken up by the grid layout.The AbsoluteContentSize property of a
UIGridStyleLayoutreveals how much space the elements of the grid are taking up, including any padding created by the grid. This property is particularly useful to size containers of grids such asFramesto make sure they aren't any larger than the grid itself.This property updates as soon as it's read. It will not fire a
Object.Changedevent immediately after the UI has changed, but if the value is read, it will become current and aObject.Changedevent will fire on the next render step.FillDirection
: FillDirectionDetermines the axis in which UI objects are laid out.The FillDirection property determines the axis in which UI elements are laid out.
FillDirection.Horizontalarranges objects from left to right, whileFillDirection.Verticalarranges objects from top to bottom. To reverse elements, such as to arrange right to left, you'll need to reverse the sorting; for example by negating the child UI objects'GuiObject.LayoutOrdervalues whenUIGridStyleLayout.SortOrderis set toSortOrder.LayoutOrder.HorizontalAlignment
: HorizontalAlignmentDetermines the horizontal alignment of UI elements within the parent element.The HorizontalAlignment property determines the X axis alignment of the grid of UI elements, much like
TextLabel.TextXAlignmentdoes withTextLabel.Text.SortOrder
: SortOrderDetermines the order in which child UI objects are placed in a layout.The SortOrder property determines the order in which child UI objects are placed in a layout.
For
SortOrder.LayoutOrder, an ascending sort is used on theLayoutOrderproperty of child UI objects. If two children share the sameLayoutOrder, whichever was added sooner to the parent object takes precedence.For
SortOrder.Name, an alphanumeric sort is used on theInstance.Nameof the child UI objects.VerticalAlignment
: VerticalAlignmentDetermines the vertical alignment of UI elements within the parent element.The VerticalAlignment property determines the Y axis alignment of the grid of UI elements, much like
TextLabel.TextYAlignmentdoes withTextLabel.Text.
UIGridStyleLayout also has every member of UILayout. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.