Skip to content

GetScreenSize

Read screensize from the current render or game view.

GetScreenSize()

Inputs: None.

Output: Screen Vector2. It can be { x = 0, y = 0 } when unavailable.

Errors and unavailable states: A capture-only render pass returns { x = 0, y = 0 }. This call has no reported Lua error.

See Rendering overview for coordinate and color conventions.