docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetHorizontalFieldOfView

    GetHorizontalFieldOfView(Camera)

    Calculates the horizontal field of view of the Camera.

    Declaration
    public static float GetHorizontalFieldOfView(this Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera to get the aspect ratio and vertical field of view from.

    Returns
    Type Description
    float

    The horizontal field of view of the camera.

    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)