Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:Returns information about the current screen settings.

Syntax

Syntax:getResolution
Parameters:
Return Value:Array - Contains the following:
  • width - Size of screen.
  • height - Size of screen.
  • 2D viewport width - Size of viewport.
  • 2D viewport height - Size of viewport.
  • aspect ratio - Ratio coefficient. For example, 1.33 for 4:3 ratio.
  • UI scale - Interface size (ratio - for example, 1).
  • render target width - Rendered resolution (V2.05+).
  • render target height - Rendered resolution (V2.05+).

Examples

Examples:
 _settings = getResolution 

Additional Information

See also: getVideoSetting, getSupportedResolutions, aspectRatio, SafeZones
Multiplayer: 
Problems: 

Notes