To be able to work with spatial data you ill have to set some build settings in Unity.
First of all, we have to set using of 16-bit depth buffers. in the Player Settings | Other Settings. Additionally Windows Holographic have to be enabled too, but this is probably already the case.
As next, set SpatialPerception in Player Settings | Capabilities.
Only if these settings are enable. SurfaceObserver will obtain data from real world and fire OnSurfaceChanged event.
which holds implementation for rendering of mesh data.
Sep 12 2016, 09:05 AM