Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

How to implement Cached Spatial Mapping on the device with Unity?

I want to use the cached spatial mapping route instead of continuous ( https://developer.microsoft.com/en-us/windows/holographic/room_scan_ux#Cached_versus_Continuous_Spatial_Mapping ).
You see it in a game like Fragments -- first step is to sufficiently map a room. On subsequent loads, the same room is loaded. You can select from a previously mapped space.

I was trying to implement this with Unity, but it doesn't seem to be supported. I've downloaded Microsoft's HoloToolkit for Unity and sniffed around all of the Spatial classes. The FileSurfaceObserver is only used by the Unity Editor. The SpatialMappingObserver is used on the device, but does not support loading from a file.

I can save the mesh from Spatial Mapping Observer to disk using the MeshSaver class, but actually I noticed it is about to be deprecated along with some other related classes I was using ( https://github.com/Microsoft/HoloToolkit-Unity/issues/39 ).

How can I load a mesh from disk, and have the Hololens orient the user within that space (preferably with events telling me when it can't match the space)?

This discussion has been closed.