docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class CameraExtensions

    Extension methods for Camera components.

    Inheritance
    object
    CameraExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Assembly: solution.dll
    Syntax
    public static class CameraExtensions

    Methods

    Name Description
    GetHorizontalFieldOfView(Camera)

    Calculates the horizontal field of view of the Camera.

    GetVerticalFieldOfView(Camera, float)

    Calculates the vertical field of view from an aspect neutral (diagonal) field of view and the camera's aspect ratio.

    GetVerticalOrthographicSize(Camera, float)

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

    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)