docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CalculateRatioAgainstMaxSize

    CalculateRatioAgainstMaxSize(int, int)

    Returns the ratio against the current target's max resolution

    Declaration
    public Vector2 CalculateRatioAgainstMaxSize(int width, int height)
    Parameters
    Type Name Description
    int width

    width to utilize

    int height

    height to utilize

    Returns
    Type Description
    Vector2

    retruns the width,height / maxTargetSize.xy ratio.

    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)