docs.unity3d.com
    目次を表示する/隠す

    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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)