Skip to content

Function: GetCursorPosition()

ts
function GetCursorPosition(this: void): vector2;

Get current UI cursor position.

Parameters

ParameterType
thisvoid

Returns

vector2

Cursor position.

Remarks

Coordinates are in the engine UI coordinate space, not raw window pixels.