Skip to content

UI.LayoutClass

Name - Description Default Type
<input> Any
<output> Object
Parent The parent Layout class to inherit parameters from. None &Object
MainDirection The main direction of the UI element layout. None LayoutDirection
MainWrap Whether the UI elements in the layout should wrap around when reaching the end of the direction of the cursor. None Bool&Bool
MainAlign How the UI elements in the layout should be aligned on the main axis. None LayoutAlign
MainJustify Whether the UI elements in the layout should be justified along the main axis. None Bool&Bool
CrossAlign How the UI elements in the layout should be aligned on the cross axis. None LayoutAlign
CrossJustify Whether the UI elements in the layout should be justified along the across axis. None Bool&Bool
MinSize The minimum size of the space to be reserved by this UI for its contents. This allows the UI to take up more space than required for its widget contents. Can be overidden by FillWidth and FillHeight. None Float2&Float2
MaxSize The maximum size of the space to be reserved by this UI for its contents. Prevents UI from taking as much space as possible. Can be overidden by FillWidth and FillHeight. None Float2&Float2
FillWidth Whether the Layout should take up the full width of the available space. None Bool
FillHeight Whether the Layout should take up the full height of the available space. None Bool
Disabled Whether the drawn layout should be disabled or not. None Bool&Bool
Frame The frame to be drawn around the layout. None LayoutFrame
EnableHorizontalScrollBar Enable the horizontal scroll bar. If either this or EnableVerticalScrollBar is true, a ScrollArea will be created within the layout. None Bool&Bool
EnableVerticalScrollBar Enable the vertical scroll bar. If either this or EnableHorizontalScrollBar is true, a ScrollArea will be created within the layout. None Bool&Bool
ScrollBarVisibility Whether the scroll bars of the scroll area should be AlwaysVisible, VisibleWhenNeeded, or Always Hidden. Default: AlwaysVisible None ScrollVisibility
ScrollAreaMinWidth The minimum width of the scroll area to be drawn. Note: This is not the minimum width of the contents of the scroll area. None Float&Float
ScrollAreaMinHeight The minimum height of the scroll area to be drawn. Note: This is not the minimum height of the contents of the scroll area. None Float&Float
ScrollAreaMaxWidth The maximum width of the scroll area to be drawn. Note: This is not the maximum width of the contents of the scroll area. None Float&Float
ScrollAreaMaxHeight The maximum height of the scroll area to be drawn. Note: This is not the maximum height of the contents of the scroll area. None Float&Float
ScrollAreaAutoShrinkWidth Whether the scroll area's width should automatically shrink to fit the size of its contents. None Bool&Bool
ScrollAreaAutoShrinkHeight Whether the scroll area's height should automatically shrink to fit the size of its contents. None Bool&Bool
ScrollAreaEnableScrolling Whether the scroll area's scrolling should be enabled. This is akin to the disable setting for UI elements. None Bool&Bool