Class ArEnumConversion
Class that performs conversions between Unity's AR enum values and the provider's custom enums.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Experimental.UnityAR
Assembly: cs.temp.dll.dll
Syntax
public static class ArEnumConversion
Methods
ToUnityTrackedPose(ArTrackedPose)
Converts from a ArTrackedPose to a Unity tracked pose value.
Declaration
public static TrackedPoseDriver.TrackedPose ToUnityTrackedPose(ArTrackedPose pose)
Parameters
Type | Name | Description |
---|---|---|
ArTrackedPose | pose | Value to convert. |
Returns
Type | Description |
---|---|
TrackedPoseDriver.TrackedPose | Unity tracked pose equivalent of the ArTrackedPose. |
ToUnityTrackingType(ArTrackingType)
Converts from a ArTrackingType to a Unity tracking type value.
Declaration
public static TrackedPoseDriver.TrackingType ToUnityTrackingType(ArTrackingType trackingType)
Parameters
Type | Name | Description |
---|---|---|
ArTrackingType | trackingType | Value to convert. |
Returns
Type | Description |
---|---|
TrackedPoseDriver.TrackingType | Unity tracking type equivalent of the ArTrackingType. |
ToUnityUpdateType(ArUpdateType)
Converts from a ArUpdateType to a Unity update type value.
Declaration
public static TrackedPoseDriver.UpdateType ToUnityUpdateType(ArUpdateType updateType)
Parameters
Type | Name | Description |
---|---|---|
ArUpdateType | updateType | Value to convert. |
Returns
Type | Description |
---|---|
TrackedPoseDriver.UpdateType | Unity update type equivalent of the ArUpdateType. |