docs.unity3d.com
    显示 / 隐藏目录

    Class IUsesCameraIntrinsicsMethods

    Inheritance
    Object
    IUsesCameraIntrinsicsMethods
    Namespace: Unity.MARS
    Syntax
    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

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)