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

    Class IUsesCameraPoseMethods

    Inheritance
    Object
    IUsesCameraPoseMethods
    Namespace: Unity.MARS
    Syntax
    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 — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)