Class DynamicResolutionHandler | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class DynamicResolutionHandler

    Inheritance
    System.Object
    DynamicResolutionHandler
    Namespace: UnityEngine.Rendering
    Syntax
    public class DynamicResolutionHandler

    Properties

    cachedOriginalSize

    Declaration
    public Vector2Int cachedOriginalSize { get; }
    Property Value
    Type Description
    Vector2Int

    filter

    Declaration
    public DynamicResUpscaleFilter filter { get; set; }
    Property Value
    Type Description
    DynamicResUpscaleFilter

    hasSwitchedResolution

    Declaration
    public bool hasSwitchedResolution { get; }
    Property Value
    Type Description
    System.Boolean

    instance

    Declaration
    public static DynamicResolutionHandler instance { get; }
    Property Value
    Type Description
    DynamicResolutionHandler

    Methods

    DefaultDynamicResMethod()

    Declaration
    public static float DefaultDynamicResMethod()
    Returns
    Type Description
    System.Single

    DynamicResolutionEnabled()

    Declaration
    public bool DynamicResolutionEnabled()
    Returns
    Type Description
    System.Boolean

    ForceSoftwareFallback()

    Declaration
    public void ForceSoftwareFallback()

    GetCurrentScale()

    Declaration
    public float GetCurrentScale()
    Returns
    Type Description
    System.Single

    GetLastScaledSize()

    Declaration
    public Vector2Int GetLastScaledSize()
    Returns
    Type Description
    Vector2Int

    GetRTHandleScale(Vector2Int)

    Declaration
    public Vector2Int GetRTHandleScale(Vector2Int size)
    Parameters
    Type Name Description
    Vector2Int size
    Returns
    Type Description
    Vector2Int

    HardwareDynamicResIsEnabled()

    Declaration
    public bool HardwareDynamicResIsEnabled()
    Returns
    Type Description
    System.Boolean

    RequestsHardwareDynamicResolution()

    Declaration
    public bool RequestsHardwareDynamicResolution()
    Returns
    Type Description
    System.Boolean

    SetCurrentCameraRequest(Boolean)

    Declaration
    public void SetCurrentCameraRequest(bool cameraRequest)
    Parameters
    Type Name Description
    System.Boolean cameraRequest

    SetDynamicResScaler(PerformDynamicRes, DynamicResScalePolicyType)

    Declaration
    public static void SetDynamicResScaler(PerformDynamicRes scaler, DynamicResScalePolicyType scalerType = DynamicResScalePolicyType.ReturnsMinMaxLerpFactor)
    Parameters
    Type Name Description
    PerformDynamicRes scaler
    DynamicResScalePolicyType scalerType

    SoftwareDynamicResIsEnabled()

    Declaration
    public bool SoftwareDynamicResIsEnabled()
    Returns
    Type Description
    System.Boolean

    Update(GlobalDynamicResolutionSettings, Action)

    Declaration
    public void Update(GlobalDynamicResolutionSettings settings, Action OnResolutionChange = null)
    Parameters
    Type Name Description
    GlobalDynamicResolutionSettings settings
    System.Action OnResolutionChange
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023