Class IUsesCameraPoseMethods
Namespace: Unity.MARS
Syntax
public static class IUsesCameraPoseMethods
Methods
GetPose(IUsesCameraPose)
Get the current camera pose
Declaration
public static Pose GetPose(this IUsesCameraPose obj)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraPose | obj |
Returns
Type | Description |
---|---|
Pose | The current camera pose |
SubscribePoseUpdated(IUsesCameraPose, Action<Pose>)
Subscribe to the poseUpdated event, which is called when the camera pose changes
Declaration
public static void SubscribePoseUpdated(this IUsesCameraPose obj, Action<Pose> poseUpdated)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraPose | obj | |
Action<Pose> | poseUpdated | The delegate to subscribe |
SubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)
Subscribe to the trackingTypeChanged event, which is called when the camera tracking type changes
Declaration
public static void SubscribeTrackingTypeChanged(this IUsesCameraPose obj, Action<MRCameraTrackingState> trackingTypeChanged)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraPose | obj | |
Action<MRCameraTrackingState> | trackingTypeChanged | The delegate to subscribe |
UnsubscribePoseUpdated(IUsesCameraPose, Action<Pose>)
Unsubscribe from the poseUpdated event, which is called when the camera pose changes
Declaration
public static void UnsubscribePoseUpdated(this IUsesCameraPose obj, Action<Pose> poseUpdated)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraPose | obj | |
Action<Pose> | poseUpdated | The delegate to unsubscribe |
UnsubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)
Unsubscribe from the trackingTypeChanged event, which is called when the camera tracking type changes
Declaration
public static void UnsubscribeTrackingTypeChanged(this IUsesCameraPose obj, Action<MRCameraTrackingState> trackingTypeChanged)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraPose | obj | |
Action<MRCameraTrackingState> | trackingTypeChanged | The delegate to unsubscribe |