Open linas-apprenticefs opened 2 years ago
https://github.com/doughtmw/display-calibration-hololens/blob/35d1437f8f3b62dc33379a2aaa14e788dd309e0c/unity-sandbox/HoloLens2-Display-Calibration/Assets/Scripts/NetworkBehaviour.cs#L308 using Microsoft.MixedReality.OpenXR; ... ~~_unityCoordinateSystem = Marshal.GetObjectForIUnknown(WorldManager.GetNativeISpatialCoordinateSystemPtr()) as SpatialCoordinateSystem;~~
_unityCoordinateSystem = PerceptionInterop.GetSceneCoordinateSystem(UnityEngine.Pose.identity) as SpatialCoordinateSystem;
Thanks, It really helped!
https://github.com/doughtmw/display-calibration-hololens/blob/35d1437f8f3b62dc33379a2aaa14e788dd309e0c/unity-sandbox/HoloLens2-Display-Calibration/Assets/Scripts/NetworkBehaviour.cs#L308 using Microsoft.MixedReality.OpenXR; ... ~~_unityCoordinateSystem = Marshal.GetObjectForIUnknown(WorldManager.GetNativeISpatialCoordinateSystemPtr()) as SpatialCoordinateSystem;~~
_unityCoordinateSystem = PerceptionInterop.GetSceneCoordinateSystem(UnityEngine.Pose.identity) as SpatialCoordinateSystem;