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 do I delete spatial mapping data in HoloLens in c++ code?

edited November 2018 in Questions And Answers

Hi everyone,

Is there any Visual Studio project example (not Unity) or c++ code example that allow me to delete the stored spatial mapping data in HoloLens system?

I want to develop a HoloLens remoting app and when the user launches the app, I want the spatial mapping automatically start and last for 30 seconds.

The problem I am having now is occasionally the spatial mapping mesh won't be rendered and I found out the reason is somehow the spatial mapping did not even start.

I am not sure the exact reason so I want to try if clear all the stored spatial mapping will help solve this problem.

Any help is appreciated.


Best Answer


  • @stepan_stulov said:
    Hey, @Musa

    While I'm not familiar with C++ HoloLens development in particular, I believe you cannot do that, there are no public APIs for messing with Spaces (aka Holograms) other than manually from the settings.


    Hi Stepan, thanks. I do agree with you now...

Sign In or Register to comment.