Class SimulatedCameraPoseProvider
Implements
IFunctionalityProvider
IFunctionalitySubscriber<IProvidesDeviceSimulationSettings>
IFunctionalitySubscriber
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.Providers.Synthetic
Assembly: Unity.MARS.dll
Syntax
[ProviderSelectionOptions(-1073741824, null, false)]
[MovedFrom("Unity.MARS.Providers")]
public class SimulatedCameraPoseProvider : MonoBehaviour, IProvidesCameraPose, IFunctionalityProvider, IUsesDeviceSimulationSettings, IFunctionalitySubscriber<IProvidesDeviceSimulationSettings>, IFunctionalitySubscriber
Methods
GetCameraPose()
Get the current camera pose
Declaration
public Pose GetCameraPose()
Returns
Type | Description |
---|---|
Pose | The current camera pose |
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
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber