Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
7
Question by Ezequiel · Mar 05, 2010 at 12:14 AM · 3dtext

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:

http://picpaste.com/Capture_1.PNG

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
11
Best Answer

Answer by Eric5h5 · Mar 05, 2010 at 12:31 AM

Use this shader on the wiki, which uses the z buffer.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BerggreenDK · Oct 17, 2011 at 08:33 PM 0
Share

how can I make it respond to lighting and text color?

avatar image cmos · Nov 26, 2011 at 10:11 AM 0
Share

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.

avatar image logic.cpp · Apr 16, 2013 at 11:51 AM 0
Share

Rich tags <color=red>like this</color> don't work with that shader...

avatar image faxedhead · Jul 20, 2015 at 11:10 AM 1
Share

Updated link is here: http://wiki.unity3d.com/index.php?title=3DText and yes it works!

avatar image
2

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SimRuJ · Oct 08, 2021 at 10:48 AM 0
Share

I'm using a GameObject -> UI -> Text text in Unity 2021.1.6f1 and it's still visible through other objects.

avatar image
0

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!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

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

2D Game - GUIText doesn't shake with the camera 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges