GuiBase2d
GuiBase2d : Instance
Overview
This is an abstract class inherited by 2D GuiObjects.
Properties
AbsolutePosition
Vector2
This property specifies the pixel-based screen position where a UI element is rendered.
This value reflects the final computed position, accounting for the positions and sizes of parent UI elements, and is always relative to the element’s top-left corner.
Code Samples
local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel
print("AbsolutePosition : ", TextLabel.AbsolutePosition)
AbsoluteSize
Vector2
This property represents the pixel-based size of a UI element as rendered on the screen.
This value incorporates the parent’s size, AnchorPoint, and Scale settings, accurately reflecting the final on-screen size of the element.
Code Samples
local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel
print("AbsoluteSize : ", TextLabel.AbsoluteSize)
Methods
Events
Last updated