次の方法で共有


PerceptionInterop.GetSceneCoordinateSystem(Pose) Method

Definition

Get a COM wrapper object of a Windows.Perception.Spatial.SpatialCoordinateSystem object located at the given pose in the current Unity scene. If failed, the function returns nullptr. The application should acquire a new one when session origin is changed or tracking mode is changed by listening to XRInputSubsystem.trackingOriginUpdated and monitoring ARSession.currentTrackingMode.

public static object GetSceneCoordinateSystem (UnityEngine.Pose poseInScene);
static member GetSceneCoordinateSystem : UnityEngine.Pose -> obj
Public Shared Function GetSceneCoordinateSystem (poseInScene As Pose) As Object

Parameters

poseInScene
UnityEngine.Pose

The pose of returned coordinate system in the current Unity scene. If input Pose.identity, the returned coordinate system will be at the origin of the current Unity scene.

Returns

Returns a COM wrapper C# object of type Windows.Perception.Spatial.SpatialCoordinateSystem. Returns null if such coordinate system cannot be found at the moment.

Applies to