GuiObject
Base class for all on-screen 2D UI elements (frames, labels, buttons, etc.).
Properties
11| Name | Type | Access | Description |
|---|---|---|---|
| ZIndex | number | read | The rendering order for this GuiObject, highest renders on last, and thus, on top of every other UI element. since 1.7.1-alphaRoblox ↗ |
| LayoutOrder | number | read | Controls the sort order when using a StyleLayout. since 1.7.1-alphaRoblox ↗ |
| Active | boolean | read | If since 1.7.1-alphaRoblox ↗ |
| Visible | boolean | read | Whether the item and its descendants will be rendered. since 1.7.1-alphaRoblox ↗ |
| Interactable | boolean | read | Whether the GuiObject is 'Interactable'. Refer to official Roblox documentation for the '*' in this property. since 1.7.1-alphaRoblox ↗ |
| Rotation | number | read | The rotation for this GuiObject in degrees. since 1.7.1-alphaRoblox ↗ |
| BackgroundColor3 | Color3 | read | The color of the GUI object's background. since 1.7.1-alphaRoblox ↗ |
| Size | UDim2 | readwrite | The size of the element, as a UDim2 (scale plus offset). since 1.6.0-alphaRoblox ↗ |
| Position | UDim2 | readwrite | The position of the element, as a UDim2 (scale plus offset). since 1.6.0-alphaRoblox ↗ |
| AbsolutePosition | Vector2 | read | The element's actual on-screen position in pixels, after layout is resolved. since 1.6.7-alphaRoblox ↗ |
| AbsoluteSize | Vector2 | read | The element's actual on-screen size in pixels, after layout is resolved. since 1.6.7-alphaRoblox ↗ |