Class RecordedCameraPoseProvider
Implements
IFunctionalityProvider
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Recording.Providers
Assembly: Unity.MARS.dll
Syntax
[ProviderSelectionOptions(-1073741825, null, true)]
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()
GetCameraPose()
Get the current camera pose
Declaration
public Pose GetCameraPose()
Returns
Type | Description |
---|---|
Pose | The current camera pose |
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()
Events
poseUpdated
Called when the camera pose changes
Declaration
public 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
public event Action<MRCameraTrackingState> trackingStateChanged
Event Type
Type | Description |
---|---|
Action<MRCameraTrackingState> |
Implements
Unity.XRTools.ModuleLoader.IFunctionalityProvider