AppRemoting.TryLocateUserReferenceSpace(FrameTime, Pose) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
To locate the XR_REMOTING_REFERENCE_SPACE_TYPE_USER_MSFT
reference space in Unity's scene origin space in the remote app. For more details, reference the
Coordinate System Synchronization with Holographic Remoting.
public static bool TryLocateUserReferenceSpace(Microsoft.MixedReality.OpenXR.FrameTime frameTime, out UnityEngine.Pose pose);
static member TryLocateUserReferenceSpace : Microsoft.MixedReality.OpenXR.FrameTime * Pose -> bool
Public Shared Function TryLocateUserReferenceSpace (frameTime As FrameTime, ByRef pose As Pose) As Boolean
Parameters
- pose
- UnityEngine.Pose
Output the pose of the user reference space in the Unity's scene origin space.
Returns
Returns true when the user reference space is tracking and output pose is valid to be used. Returns false when the user reference space lost tracking or it's not properly set up.
Remarks
This functionality needs the "Holographic Remoting remote app" feature in OpenXR project settings to be enabled and returns false otherwise. This functionality always returns false in Holographic PlayMode Remoting.