GuiBase2d

GuiBase2d : Instance

Properties

AbsolutePosition

Vector2

AbsolutePosition provides the screen position of a GUI element in pixels. It reflects the actual pixel position after accounting for the sizes and positions of ancestor elements

Code Samples

local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel

print("AbsolutePosition : ", TextLabel.AbsolutePosition)

AbsoluteSize

Vector2

AbsoluteSize specifies the rendered size of a GUI element in pixels, determined by its ancestors' sizes and its own size settings.

Code Samples

local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel

print("AbsoluteSize : ", TextLabel.AbsoluteSize)

Methods

Events

Last updated