Class BasePoseProvider
The BasePoseProvider type is used as the base interface for all "Pose Providers" Implementing this abstract class will allow the Pose Provider to be linked to a Tracked Pose Driver.
Inherited Members
Namespace: UnityEngine.Experimental.XR.Interaction
Assembly: UnityEngine.SpatialTracking.dll
Syntax
[Serializable]
public abstract class BasePoseProvider : MonoBehaviour
Methods
GetPoseFromProvider(out Pose)
Gets the Pose value from the Pose Provider. Specializations will return the correct bitflags relating to the Pose data they are returning.
Declaration
public virtual PoseDataFlags GetPoseFromProvider(out Pose output)
Parameters
Type | Name | Description |
---|---|---|
Pose | output | When this method returns, contains the Pose data from the Pose Provider. |
Returns
Type | Description |
---|---|
PoseDataFlags | Returns whether position and/or rotation was set on the Pose struct returned with |
TryGetPoseFromProvider(out Pose)
This function is provided for backwards compatibility with the BasePoseProvider found in com.unity.xr.legacyinputhelpers v1.3.X. Please do not implement this function, instead use the new API via GetPoseFromProvider(out Pose).
Declaration
[Obsolete("This function is provided for backwards compatibility with the BasePoseProvider found in com.unity.xr.legacyinputhelpers v1.3.X. Please do not implement this function, instead use the new API via GetPoseFromProvider", false)]
public virtual bool TryGetPoseFromProvider(out Pose output)
Parameters
Type | Name | Description |
---|---|---|
Pose | output | This function is deprecated and sets the output parameter to Pose.identity. |
Returns
Type | Description |
---|---|
bool | This function is deprecated and returns false. |