vbandi / HL2-ResearchMode

HoloLens 2 research mode experiments.
MIT License
19 stars 2 forks source link

Importing the project in unity2020 #5

Open chiarapalu opened 3 years ago

chiarapalu commented 3 years ago

FYI: when using unity2020.x in the SensorTest.cs script change lines #132= IntPtr WorldOriginPtr = UnityEngine.XR.WSA.WorldManager.GetNativeISpatialCoordinateSystemPtr(); and #133 var unityWorldOrigin = System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(WorldOriginPtr) as Windows.Perception.Spatial.SpatialCoordinateSystem; with: var unityWorldOrigin = Windows.Perception.Spatial.SpatialLocator.GetDefault().CreateStationaryFrameOfReferenceAtCurrentLocation().CoordinateSystem;

vbandi commented 3 years ago

Thank you!