UI.LayoutClass¶
| Name | Mandatory | Description | Default | Type |
|---|---|---|---|---|
⬅️ Input |
Not used. | Any |
||
Output ➡️ |
A Layout class that can be used in other UI shards. | Object |
||
Parent |
No | The parent Layout class to inherit parameters from. | none |
Var(Object)None |
MainDirection |
No | The primary direction of the UI element layout. | none |
LayoutDirectionNone |
MainWrap |
No | Should UI elements wrap when reaching the end of the main direction. | none |
BoolVar(Bool)None |
MainAlign |
No | Alignment of UI elements along the main axis. | none |
LayoutAlignNone |
MainJustify |
No | Justification of UI elements along the main axis. | none |
BoolVar(Bool)None |
CrossAlign |
No | Alignment of UI elements along the cross axis. | none |
LayoutAlignNone |
CrossJustify |
No | Justification of UI elements along the cross axis. | none |
BoolVar(Bool)None |
MinSize |
No | Minimum space reserved for UI contents. Overridden by FillWidth and FillHeight. | none |
Float2Var(Float2)None |
MaxSize |
No | Maximum space reserved for UI contents. Overridden by FillWidth and FillHeight. | none |
Float2Var(Float2)None |
FillWidth |
No | Whether the layout should occupy the full width. | none |
BoolVar(Bool)None |
FillHeight |
No | Whether the layout should occupy the full height. | none |
BoolVar(Bool)None |
Disabled |
No | Whether the layout should be disabled. | none |
BoolVar(Bool)None |
Frame |
No | Frame to be drawn around the layout. | none |
LayoutFrameNone |
EnableHorizontalScrollBar |
No | Enable the horizontal scroll bar. Creates a ScrollArea if true. | none |
BoolVar(Bool)None |
EnableVerticalScrollBar |
No | Enable the vertical scroll bar. Creates a ScrollArea if true. | none |
BoolVar(Bool)None |
ScrollBarVisibility |
No | Visibility of the scroll bars: AlwaysVisible, VisibleWhenNeeded, or AlwaysHidden. Default: AlwaysVisible. | none |
ScrollVisibilityNone |
ScrollAreaMinWidth |
No | Minimum width of the scroll area. | none |
FloatVar(Float)None |
ScrollAreaMinHeight |
No | Minimum height of the scroll area. | none |
FloatVar(Float)None |
ScrollAreaMaxWidth |
No | Maximum width of the scroll area. | none |
FloatVar(Float)None |
ScrollAreaMaxHeight |
No | Maximum height of the scroll area. | none |
FloatVar(Float)None |
ScrollAreaAutoShrinkWidth |
No | Auto-shrink scroll area width to fit contents. | none |
BoolVar(Bool)None |
ScrollAreaAutoShrinkHeight |
No | Auto-shrink scroll area height to fit contents. | none |
BoolVar(Bool)None |
ScrollAreaEnableScrolling |
No | Enable scrolling in the scroll area. | none |
BoolVar(Bool)None |
This shard creates a Layout class that can be used in other UI shards.