Method GetSpatialAnchorPose
GetSpatialAnchorPose(ulong, out Vector3, out Quaternion, out YVRAnchorLocationFlags)
Retrieves the pose of a spatial anchor identified by the given handle.
Declaration
public bool GetSpatialAnchorPose(ulong anchorHandle, out Vector3 position, out Quaternion rotation, out YVRAnchorLocationFlags locationFlags)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | anchorHandle | The handle of the spatial anchor |
| Vector3 | position | The position of the spatial anchor |
| Quaternion | rotation | The rotation of the spatial anchor |
| YVRAnchorLocationFlags | locationFlags | Flags indicating the location of the spatial anchor |
Returns
| Type | Description |
|---|---|
| bool | True if the spatial anchor pose was successfully retrieved; otherwise, false |