Get Screen Resolution
PureGetScreenResolutionReturns the current screen resolution and refresh rate.
Type: Pure (no side effects)
Category: Fortuna|Platform & System
Keywords: platform & system
Outputs
| Name | Type | Description |
|---|---|---|
| Width | int | Width output |
| Height | int | Height output |
| RefreshRate | float | RefreshRate output |
Example Use Cases
Example 1
Display current resolution in settings menu.
Example 2
Calculate UI scaling based on resolution.