docs.unity3d.com
    Show / Hide Table of Contents

    Class RecordedCameraPoseProvider

    Inheritance
    Object
    RecordedCameraPoseProvider
    Namespace: Unity.MARS.Recording.Providers
    Syntax
    public class RecordedCameraPoseProvider : MonoBehaviour, IProvidesCameraPose, IFunctionalityProvider, ISteppableRecordedDataProvider, IRecordedDataProvider

    Methods

    ClearData()

    Remove all provided data. This is called when a looping recording reaches its duration.

    Declaration
    public void ClearData()
    Implements
    IRecordedDataProvider.ClearData()

    GetCameraPose()

    Get the current camera pose

    Declaration
    public Pose GetCameraPose()
    Returns
    Type Description
    Pose

    The current camera pose

    Implements
    IProvidesCameraPose.GetCameraPose()

    StepRecordedData()

    Update provided data. This is called after the Timeline PlayableGraph is evaluated, due to either a Mars Update or a manual change in time.

    Declaration
    public void StepRecordedData()
    Implements
    ISteppableRecordedDataProvider.StepRecordedData()

    Events

    poseUpdated

    Called when the camera pose changes

    Declaration
    public event Action<Pose> poseUpdated
    Event Type
    Type Description
    Action<Pose>
    Implements
    IProvidesCameraPose.poseUpdated

    trackingStateChanged

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

    Declaration
    public event Action<MRCameraTrackingState> trackingStateChanged
    Event Type
    Type Description
    Action<MRCameraTrackingState>
    Implements
    IProvidesCameraPose.trackingStateChanged
    Back to top
    Terms of use
    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