Beta Documentation - Subject to change.

Gets the size of the display window for the game.

Syntax

Lua
function Display.GetSize();

Returns

Type: number, number
The horizontal and vertical resolution as two values.

Remarks

This method gets the resolution the game is being displayed in as a pair of numbers that correspond to the horizontal and vertical resolution.

See Also