Search Results for

    Show / Hide Table of Contents

    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 Source

    GetScreenHeight()

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.