Table of Contents

Method GetSpatialAnchorPose

Namespace
YVR.Core
Assembly
YVR.Core.Runtime.dll

GetSpatialAnchorPose(ulong, out Vector3, out Quaternion, out YVRAnchorLocationFlags)

Retrieves the pose of a spatial anchor identified by the given handle.

public bool GetSpatialAnchorPose(ulong anchorHandle, out Vector3 position, out Quaternion rotation, out YVRAnchorLocationFlags locationFlags)

Parameters

anchorHandle ulong

The handle of the spatial anchor

position Vector3

The position of the spatial anchor

rotation Quaternion

The rotation of the spatial anchor

locationFlags YVRAnchorLocationFlags

Flags indicating the location of the spatial anchor

Returns

bool

True if the spatial anchor pose was successfully retrieved; otherwise, false