3D Text Component hide from behind


Is there a way to hide a 3D Text Component that is in “air” when the user look from behind?
I’m not talking to hide when is behind an element like here: http://wiki.unity3d.com/index.php?title=3DText

So I have a 3D text up on the player, and from front is ok:


And from behind the text should not be visible:


I try with Transparent, but it give me a black color.
How can I resolve this?


You could turn it off. Compare the Vector3.Dot() of the transform.forward of the camera with the transform.forward of the 3D Text. If the value is negative, then disable the renderer. Put something like this on your 3D Text.

#pragma strict

function Update() {
	renderer.enabled = Vector3.Dot(transform.forward, Camera.main.transform.forward) > 0.0;