Documentation

Get Absolute Position - Open Dev Kit Documentation

Open Dev Kit Documentation :: GUI :: Control :: Get Absolute Position

GUI.Control.GetAbsolutePosition(
  Control Control*,
  Border Boolean
) 2D Vector
Returns the absolute position of a control relative to the screen or another control

Parameters

Control Control*
Control to which the position is relative
Border Boolean
Whether to include the border in the calculation

Return Value

2D Vector

Lua Usage

local value2DVector = control:GetAbsolutePosition(control, border)

If you think anything is missing, please feel free to: submit documentation feedback on this page