GetAspectRatio
Docslocal retval = GetAspectRatio(physicalAspect)Description
Introduced in build 323
This native retrieves the aspect ratio of the game window. If physicalAspect is true, it returns the physical aspect ratio of the game window, which is useful for 3x1 modes. Otherwise, it returns the aspect ratio of the main game window, considering any custom overrides from the settings menu.
Parameters
| Name | Type | Description |
|---|---|---|
physicalAspect | BOOL | A boolean value. Passing in `true` returns the physical aspect ratio of the game window. Passing in `false` returns the aspect ratio of the main game window. |
Returns
floatReturns a floating-point number.