docs.unity3d.com
    Show / Hide Table of Contents

    Class IUsesCameraIntrinsicsMethods

    Inheritance
    Object
    IUsesCameraIntrinsicsMethods
    Namespace: Unity.MARS.Providers
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class IUsesCameraIntrinsicsMethods

    Methods

    GetFieldOfView(IUsesCameraIntrinsics)

    Get the field of view of the physical camera

    Declaration
    public static float? GetFieldOfView(this IUsesCameraIntrinsics obj)
    Parameters
    Type Name Description
    IUsesCameraIntrinsics obj
    Returns
    Type Description
    Nullable<Single>

    The camera field of view

    GetFocalLength(IUsesCameraIntrinsics)

    Get the focal length of the camera, in pixels

    Declaration
    public static float GetFocalLength(this IUsesCameraIntrinsics obj)
    Parameters
    Type Name Description
    IUsesCameraIntrinsics obj
    Returns
    Type Description
    Single

    The focal length of the camera, in pixels

    SubscribeFieldOfViewUpdated(IUsesCameraIntrinsics, Action<Single>)

    Subscribe to the FieldOfViewUpdated event, which is called when the camera field of view has changed

    Declaration
    public static void SubscribeFieldOfViewUpdated(this IUsesCameraIntrinsics obj, Action<float> fieldOfViewUpdated)
    Parameters
    Type Name Description
    IUsesCameraIntrinsics obj
    Action<Single> fieldOfViewUpdated

    The delegate to subscribe

    UnsubscribeFieldOfViewUpdated(IUsesCameraIntrinsics, Action<Single>)

    Unsubscribe from the FieldOfViewUpdated event, which is called when the camera field of view has changed

    Declaration
    public static void UnsubscribeFieldOfViewUpdated(this IUsesCameraIntrinsics obj, Action<float> fieldOfViewUpdated)
    Parameters
    Type Name Description
    IUsesCameraIntrinsics obj
    Action<Single> fieldOfViewUpdated

    The delegate to unsubscribe

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023