Search Unity

HoloLens - Clear Holograms

Discussion in 'VR' started by babklapper, Sep 5, 2019.

  1. babklapper

    babklapper

    Joined:
    Sep 17, 2014
    Posts:
    6
    Hello,

    I occasionally need to "remove all holograms" on the HoloLens, because the spatial data stored can give problems in some situations. I can do this through the device's settings: Settings > System > Holograms > Remove all holograms.

    My question is: Is there any way to clear the holograms/spatial data directly from code?
    I am using MRTK v2 with Unity 2018.4.2, but I don't really want to have to manually go through the Windows settings just to clear the spatial data.

    If anyone has any idea, I would be very interested to hear :)
     
  2. stepan-stulov

    stepan-stulov

    Joined:
    Nov 26, 2013
    Posts:
    28
    Hey

    There is no known API to do so.

    Some argue it's good that way, since holograms/spaces are OS level data that one single app is not supposed to mess with. Myself non-religiously included.

    Cheers