docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetReferenceSize

    SetReferenceSize(int, int)

    Sets the reference rendering size for subsequent rendering for the RTHandle System

    Declaration
    public void SetReferenceSize(int width, int height)
    Parameters
    Type Name Description
    int width

    Reference rendering width for subsequent rendering.

    int height

    Reference rendering height for subsequent rendering.

    SetReferenceSize(int, int, bool)

    Sets the reference rendering size for subsequent rendering for the RTHandle System

    Declaration
    public void SetReferenceSize(int width, int height, bool reset)
    Parameters
    Type Name Description
    int width

    Reference rendering width for subsequent rendering.

    int height

    Reference rendering height for subsequent rendering.

    bool reset

    If set to true, the new width and height will override the old values even if they are not bigger.

    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)