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?

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.