- Home /
3d Text rendering over scene objetcs
I added a 3d Text game object to the scene. But the text is rendered "on top" of all the other elements on the scene. How do I change this so that the text is rendered correctly, behind the character?
Screenshot:
Answer by Eric5h5 · Mar 05, 2010 at 12:31 AM
Use this shader on the wiki, which uses the z buffer.
how can I make it respond to lighting and text color?
I get errors on semi colons here.
Edit: Ok got it to work after 2+ hours. Just had to place the script in the right folder with all the other .shader files.
Rich tags <color=red>like this</color> don't work with that shader...
Updated link is here: http://wiki.unity3d.com/index.php?title=3DText and yes it works!
Answer by lokivoid · Jan 09, 2011 at 05:35 PM
UPD: I was able to fix the problem by replacing ZWrite On with ZWrite Off
Answer by klesun · Jan 02, 2017 at 09:53 PM
If you don't want to mess with shaders, maybe you would like to just use:GameObject -> Ui -> Canvas
with "Render Mode" = "World Space"
and
GameObject -> Ui -> Text
inside of it?
It takes obstacles into account when rendering text.
I'm using a GameObject -> UI -> Text
text in Unity 2021.1.6f1 and it's still visible through other objects.
Answer by jrat · Oct 11, 2015 at 06:35 PM
Make sure the walls have materials with "Transparent/Diffuse" shaders.
I was having the same problem, with text showing through a Quad. I then changed the shader on the Quad, and the text stopped showing through. Hope this works!
Your answer
Follow this Question
Related Questions
Why won't my coroutine start? 2 Answers
Changing TEXT (text value) within 3D text 2 Answers
Dynamic 3D Text 1 Answer
How can i place 3D Text to the corner of the screen? 4 Answers