- Home /
How to make text damage notifiers above enemy
Hi guys, I am trying to make damage notifiers above my enemy units when a player unit attacks them. An example of this would be like in WOW when you are attack an enemy it has a text amount of damage in red above the unit and then it fades away. How could I replicate this in unity C#? Ive tried attaching a Gui Text to the enemy unit, but it didnt show up. Ive creating a gui text object but the coordinates didnt align correctly, and it didnt really work as a child asset to my enemy objects.
Someone mentioned using camera.WorldToScreenPoint, but i was unsure how to use it to create text at a position. Can anyone help me?
Thanks,
Answer by SteelArrow21 · Jul 10, 2014 at 05:03 AM
I believe what you want is answered here: http://answers.unity3d.com/questions/426572/pop-up-damage-on-hit.html
Your answer
Follow this Question
Related Questions
Script to change GUI text's displayed text value? 7 Answers
HELP with scripting where GUI is involved 2 Answers
changing font + size of text 1 Answer