How would i put a gui texture, such as a health bar, over an object. i want it to be able to move around with the object. im unable to find anything that could help me on the scripting reference.
asked Nov 18 '10 at 01:01 AM
var player_ob : GameObject;
var cam : Camera;
var cam_pos : Transform;
cam_pos.position = cam.WorldToViewportPoint(player_ob.transform.position);
answered Nov 18 '10 at 07:30 AM