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.
Remove occlusion for UI only
Hello everyone,
I have a simple project where I put a hologram in the room, I added a SpatialMapping GameObject with the Spatial Mapping Renderer and the Spatial Mapping Collider in the scene and all is OK, my object is correctly occluded.
The problem is that I have UI items like menus, cursors etc and they are occluded too. I don't know what to do to occlude only some objects. I tried layers, putting UI as 0 and wanted occluded objects as 31, I modified the layer Collision Matrix but it does nothing.
I looked for topics on the forum but just found one with no answer.
If you can help me, thank you in advance and have a great day.
Best Answer
-
OptionsDavon92 ✭
i believe there is a VR shader/Material in unitys VR Samples that you can set as the material for ui components that will render it ontop of anything.
5
Answers
i believe there is a VR shader/Material in unitys VR Samples that you can set as the material for ui components that will render it ontop of anything.
Yeah thank you I used GUI 3D text shadder and I can use it even on object that are not text. Thank you!