- Home /
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.
Answer by DaveA · Feb 12, 2011 at 07:58 PM
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.
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