docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UpdateAndUseCamera

    UpdateAndUseCamera(Camera, GlobalDynamicResolutionSettings?, Action)

    Update the state of the dynamic resolution system for a specific camera. Call this function also to switch context between cameras (will set the current camera as active). Passing a null camera has the same effect as calling Update without the camera parameter.

    Declaration
    public static void UpdateAndUseCamera(Camera camera, GlobalDynamicResolutionSettings? settings = null, Action OnResolutionChange = null)
    Parameters
    Type Name Description
    Camera camera

    Camera used to select a specific instance tied to this DynamicResolutionHandler instance.

    GlobalDynamicResolutionSettings? settings

    (optional) The settings that are to be used by the dynamic resolution system. passing null for the settings will result in the last update's settings used.

    Action OnResolutionChange

    An action that will be called every time the dynamic resolution system triggers a change in resolution.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)