共用方式為


AppRemoting.TryLocateUserReferenceSpace(FrameTime, Pose) Method

Definition

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

frameTime
FrameTime

Specify the FrameTime to locate the user reference space.

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.

Applies to