Class RecordedCameraPoseProvider
Inherited Members
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
GetCameraPose()
Get the current camera pose
Declaration
public Pose GetCameraPose()
Returns
Type | Description |
---|---|
Pose | The current camera pose |
Implements
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
Events
poseUpdated
Called when the camera pose changes
Declaration
public event Action<Pose> poseUpdated
Event Type
Type | Description |
---|---|
Action<Pose> |
Implements
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
Explicit Interface Implementations
IFunctionalityProvider.ConnectSubscriber(Object)
Declaration
void IFunctionalityProvider.ConnectSubscriber(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Implements
IFunctionalityProvider.LoadProvider()
Declaration
void IFunctionalityProvider.LoadProvider()
Implements
IFunctionalityProvider.UnloadProvider()
Declaration
void IFunctionalityProvider.UnloadProvider()