3
\$\begingroup\$

How Can i Create Text in Unity3D? I Use "3D Text" But Its Always on Top Of Everything! Can You Suggest Anything? I creating a 2D Game So its not Necessarily a 3D Text..

Edit: Because I Building a 2D Game My Scene is Full of Planes in Front of Camera And I want My Text to be Over One of the Planes and when plane is moving My Text appears behind it. But When I Use "3D Text" Its Always In Front of Everything.

Sorry for My Bad English...

\$\endgroup\$
2
  • \$\begingroup\$ How are you wanting the text to be? If you don't want it to be on top of everything, how do you want it? Please edit your question to tell us exactly what you want to do. \$\endgroup\$
    – House
    Commented Oct 18, 2013 at 21:00
  • \$\begingroup\$ ok I Edit The Question. Tnx For Reply. \$\endgroup\$
    – dev-masih
    Commented Oct 18, 2013 at 23:20

3 Answers 3

2
\$\begingroup\$

You will want to use this shader to achieve the effect you're after.

\$\endgroup\$
0
0
\$\begingroup\$

You can create a polygon with the texture of your text.

Are you using 2D Toolkit or something similar? This makes the process super easy and you can layer the text however you'd like.

\$\endgroup\$
0
\$\begingroup\$

The simplest solution would be to use a secondary camera to render your airplanes, and use the main camera to render everything that has to be below the airplanes (such as text).

Add a new camera, adjust its depth to a value greater than your main camera. Make sure its normalized view port rect property has the values X:0 Y:0 W:1 H:1 (to take the whole screen). Make sure it's set to ignore all layers except for the airplanes' layer (see the Culling Mask property). Also change your main camera so that it ignores the airplanes' layer (but doesn't ignore the rest).

Now the text will be rendered by the main camera, and the airplanes will be rendered by the secondary camera. The text will appear below the airplanes.

To make the text appear on top of the airplanes, use the 2nd camera to render text, and the first camera to render the airplanes.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .