Class CameraPoseProvider
Namespace: Unity.MARS.Providers
Syntax
public class CameraPoseProvider : MonoBehaviour, IProvidesCameraPose, IFunctionalityProvider, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>
Methods
GetCameraPose()
Get the current camera pose
Declaration
public Pose GetCameraPose()
Returns
Type | Description |
---|---|
Pose | The current camera pose |
Implements
PerformUpdate()
Declaration
protected virtual void PerformUpdate()
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> |