docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetVerticalOrthographicSize

    GetVerticalOrthographicSize(Camera, float)

    Calculates the vertical orthographic size for a Camera and a given diagonal size.

    Declaration
    public static float GetVerticalOrthographicSize(this Camera camera, float size)
    Parameters
    Type Name Description
    Camera camera

    The camera to get the aspect ratio from.

    float size

    The diagonal orthographic size.

    Returns
    Type Description
    float

    The vertical orthographic size calculated.

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