- Home /
How do I make my 3D Text not be visible through objects?
I have some 3D text in my scene, but when I have fog enabled, you can see the text right through the fog. Also, even when I tried putting it behind game objects, the text would still appear. I know it's getting masked somehow because when I put it underneath my terrain, the text is no longer visible. Does anyone know why this is? I can provide pictures if this information is not clear enough to understand.
Answer by Eric5h5 · Mar 27, 2013 at 06:40 PM
Oh, sorry, but the text is still showing through the fog. You fixed it showing through objects though. Do you know what else I need to do to fix that?
EDIT: Image for reference. http://imgur.com/3jrNpz7
Probably something like "fog mode on" should be in the shader.
You meant this line?
Lighting Off Cull Off ZWrite Off Fog { $$anonymous$$ode On }
When I changed { $$anonymous$$ode Off } to { $$anonymous$$ode On } I get that hot pink default material thing where it renders nothing.
I deleted
Fog {$$anonymous$$ode Off}
And that makes it work. Thanks for your help again
Your answer
![](https://koobas.hobune.stream/wayback/20220613095218im_/https://answers.unity.com/themes/thub/images/avi.jpg)