Class SimulatedCameraPoseProvider
Namespace: Unity.MARS.Providers.Synthetic
Syntax
public class SimulatedCameraPoseProvider : MonoBehaviour, IProvidesCameraPose, IFunctionalityProvider, IUsesDeviceSimulationSettings, IFunctionalitySubscriber<IProvidesDeviceSimulationSettings>
Methods
GetCameraPose()
Get the current camera pose
Declaration
public Pose GetCameraPose()
Returns
Type | Description |
---|---|
Pose | The current camera pose |
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> |