Get Screen Resolution

Pure
GetScreenResolution

Returns the current screen resolution and refresh rate.

Type: Pure (no side effects)
Category: Fortuna|Platform & System
Keywords: platform & system

Outputs

NameTypeDescription
WidthintWidth output
HeightintHeight output
RefreshRatefloatRefreshRate output

Example Use Cases

Example 1

Display current resolution in settings menu.

Example 2

Calculate UI scaling based on resolution.