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

    Class IUsesCameraPoseMethods

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

    Methods

    GetPose(IUsesCameraPose)

    Get the current camera pose

    Declaration
    public static Pose GetPose(this IUsesCameraPose obj)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Returns
    Type Description
    Pose

    The current camera pose

    SubscribePoseUpdated(IUsesCameraPose, Action<Pose>)

    Subscribe to the poseUpdated event, which is called when the camera pose changes

    Declaration
    public static void SubscribePoseUpdated(this IUsesCameraPose obj, Action<Pose> poseUpdated)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<Pose> poseUpdated

    The delegate to subscribe

    SubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)

    Subscribe to the trackingTypeChanged event, which is called when the camera tracking type changes

    Declaration
    public static void SubscribeTrackingTypeChanged(this IUsesCameraPose obj, Action<MRCameraTrackingState> trackingTypeChanged)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<MRCameraTrackingState> trackingTypeChanged

    The delegate to subscribe

    UnsubscribePoseUpdated(IUsesCameraPose, Action<Pose>)

    Unsubscribe from the poseUpdated event, which is called when the camera pose changes

    Declaration
    public static void UnsubscribePoseUpdated(this IUsesCameraPose obj, Action<Pose> poseUpdated)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<Pose> poseUpdated

    The delegate to unsubscribe

    UnsubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)

    Unsubscribe from the trackingTypeChanged event, which is called when the camera tracking type changes

    Declaration
    public static void UnsubscribeTrackingTypeChanged(this IUsesCameraPose obj, Action<MRCameraTrackingState> trackingTypeChanged)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<MRCameraTrackingState> trackingTypeChanged

    The delegate to unsubscribe

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