docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesCameraPose

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

    Namespace: Unity.MARS.Providers
    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>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023