Class Display
A collection of display related helper utilities.
Inheritance
System.Object
Display
Namespace: GDX
Syntax
[VisualScriptingCompatible((short)8)]
public static class Display
Methods
| Improve this Doc View SourceGetScreenHeight()
Returns the actual screen height being rendered on the current platform.
Declaration
public static int GetScreenHeight()
Returns
Type | Description |
---|---|
System.Int32 | The pixel height of the screen resolution. |
Remarks
This resolves issues with scaled rendering.
Exceptions
Type | Condition |
---|---|
UnsupportedRuntimeException | Not supported on DOTS Runtime. |
GetScreenWidth()
Returns the actual screen width being rendered on the current platform.
Declaration
public static int GetScreenWidth()
Returns
Type | Description |
---|---|
System.Int32 | The pixel width of the screen resolution. |
Remarks
This resolves issues with scaled rendering.
Exceptions
Type | Condition |
---|---|
UnsupportedRuntimeException | Not supported on DOTS Runtime. |
IsHDREnabled()
Is HDR output currently enabled (and actively being used)?
Declaration
public static bool IsHDREnabled()
Returns
Type | Description |
---|---|
System.Boolean | true/false |
Exceptions
Type | Condition |
---|---|
UnsupportedRuntimeException | Not supported on DOTS Runtime. |
IsHDRSupported()
Does the current display device support HDR output?
Declaration
public static bool IsHDRSupported()
Returns
Type | Description |
---|---|
System.Boolean | true/false |
Exceptions
Type | Condition |
---|---|
UnsupportedRuntimeException | Not supported on DOTS Runtime. |