x


Dynamic text on object

Hey everyone

So I'm trying to make a computer screen that will display various in-game quantities and amounts as they change. I want to put text on a plane and have it update each frame. really don't know how to go about doing this (would it be a material? a gui component that's somehow fit to an object?), didn't see anything relevant (with answers) on the forums.

more ▼

asked Feb 12 '11 at 07:50 PM

S33HUNT gravatar image

S33HUNT
61 3 3 6

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

This should get you started: http://unity3d.com/support/documentation/ScriptReference/TextMesh.html

You create a game object with a text mesh on it by creating a new gameobject (say) and then add Component Mesh/Text Mesh

You can update the text field on that in an Update() function every frame.

more ▼

answered Feb 12 '11 at 07:58 PM

DaveA gravatar image

DaveA
26.5k 151 171 256

Thanks man, got it working.

Had to look up a few other things as well. Here are the other articles that helped me:

http://answers.unity3d.com/questions/5162/3d-text-rendering-over-scene-objetcs

http://www.unifycommunity.com/wiki/index.php?title=3DText

Feb 12 '11 at 10:59 PM S33HUNT
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1095
x553
x233

asked: Feb 12 '11 at 07:50 PM

Seen: 10633 times

Last Updated: Feb 12 '11 at 07:50 PM