Question by
MajdSoufan · Jun 13, 2016 at 04:46 PM ·
unity 5guishadergui text
How to hide GUI text behind 3d object?
I do not want my GUI text to be displayed when it is behind my object. So is there any shader that I can use other that GUI/Text shader (it does not work) that I can use?
Comment
Answer by $$anonymous$$ · Jun 14, 2016 at 11:44 AM
If you want your GUI to be in 3D you should set your canvas render mode to WorldSpace. Your canvas will be in world space now. Set your camera up to see all layers. It's up to you if 3D objects are in front or behind the canvas.
Your answer
![](https://koobas.hobune.stream/wayback/20220612082846im_/https://answers.unity.com/themes/thub/images/avi.jpg)