I want to "draw" the player's name near the head of the character. How can I do it? Or is it faster to use a child object? It's the same with drawing a health bar...
Mar 29 '10 at 05:16 AM
Mar 29 '10 at 06:01 AM
any examples? can't figure out how to use code form first answer.
Use this script on the wiki, which uses GUIText objects. You can modify it slightly to use GUITextures for a health bar.
Mar 29 '10 at 05:28 AM
i forget i need a c# solution, and i have a lot of objects(and positions/names of that objects user receive from server)... may be it's better to create a child objects with label?
@Andrew Cherkashin: It would be simple to rewrite that in C# if you want. I can't see how child objects would work, considering the names won't be facing the camera (or would be backwards), and would get smaller the farther away the characters are, therefore being unreadable most of the time. You could fix that with scripting, but if you're going to do that, you might as well just use GUIText objects to begin with.
i will try. i just cant figure out how to combine that code with , mine.
You could use a 3D Text object as a child object for your player (and make it face to the camera).
Mar 29 '10 at 07:54 AM
And will this 3D Text be reflected (so that it points toward other (networked) players)?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Mar 29 '10 at 05:16 AM
Seen: 3092 times
Last Updated: Mar 29 '10 at 06:01 AM
GUI Destroy Label?
Can I place a link (such as ) into the GUI.Label?
Can you make a GUI.Box follow a player's position?(SOLVED)
Score display not working
Enemy AI Script
How Do I Center A GUI Label?
How Would I Make A GUI Label Fade After A Certain Amount Of Time?
Timer Between Labels
Trying to draw GUI.Label() at object position
Integration of Unity whithin GUI (ex QT)