Hello, everybody! Now i have another obstacle. I wonder how to make a health gui for each of my AI. And that health gui follows particular AI wherever it goes!
Thanks in advance!
Yup thats quite easy actually:
We have these wonderfull functions to convert from screen, world and viewpoint.
Like this one:
http://unity3d.com/support/documentation/ScriptReference/Camera.ViewportToScreenPoint.html
You supply the functions with 3D coords and gets a 2D coord which you can use to place your GUI object.
The GUI object can be anything you like, you just get the X/Y screencoord and the rest is up to you.
Can you handle it from here?