docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetScaledSize

    GetScaledSize(Vector2Int)

    Applies to the passed size the scale imposed by the dynamic resolution system. Note: this function has the side effect of caching the last scale size, and the output is always smaller or equal then the input.

    Declaration
    public Vector2Int GetScaledSize(Vector2Int size)
    Parameters
    Type Name Description
    Vector2Int size

    The starting size of the render target that will be scaled by dynamic resolution.

    Returns
    Type Description
    Vector2Int

    The parameter size scaled by the dynamic resolution system.

    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)