- Home /
How do you create text that can be the child of a non-canvas object?
I need text that will move with an object. In older versions of unity, I would have used 3d text.
Answer by Calum1015 · Mar 25, 2015 at 07:03 PM
Creat an empty game object. Write a script using GUI.Label that writes out your text. Attach that code to the empty. Now child the empty to the main camera and child the camera to the game object. Is this the sort of thing you need?
No. there will be multiple objects. All of which will be falling. I need text to fall with each object to keep track of their HP.
Use a text mesh I guess. If you had searched this on Google there was already a question exactly like this. answers.unity3d.com/questions/302252/hud-text-following-game-object.html
While the question was quite different, the provided solution works. Thank you.
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
Display Name Above Object 2 Answers
Why is parenting not working? 0 Answers
How to move your player with a moving platform (parent-child method not working). 2 Answers
Parent class cannot find component 0 Answers