How To Prevent UI from Clipping Through Game Objects?

Hello Everyone,

I’m working on a VR game and trying to make a Pause Menu using World Space on the canvas. The problem is, when the user moves their head in certain areas of the level with the Pause Menu open, the UI elements clip through things like walls. I tried making a dedicated UI camera that only renders the UI but it had too much of an impact on performance. Is there a way to render a World Space canvas on top of all other game objects?

Take a look here

Thank you for sharing the link. I believe that will work. I’m gonna try it out today.

Hey there, just wondering, did this work for you? I’m having a similar issue in my VR Oculus Quest app where the UI menus are clipping through the environment meshes.

Yes that worked for us.

Awesome, I’ll give it a shot thanks!

Thanks for that link! I found the solution from Julien-Lynge to be the most useful one to do what I wanted to do.