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

    Interface IProvidesCameraPose

    Defines the API for a Camera Pose Provider This functionality provider is responsible for 3dof/6dof camera tracking data

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS
    Syntax
    public interface IProvidesCameraPose : IFunctionalityProvider

    Methods

    GetCameraPose()

    Get the current camera pose

    Declaration
    Pose GetCameraPose()
    Returns
    Type Description
    Pose

    The current camera pose

    Events

    poseUpdated

    Called when the camera pose changes

    Declaration
    event Action<Pose> poseUpdated
    Event Type
    Type Description
    Action<Pose>

    trackingStateChanged

    Called when the type of tracking changes, for example from 6dof to 3dof

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