Hi Guys,
I was just wondering how I could go about setting up a text GUI to follow my player ( a cube at the moment)with the score on it?
I know how to do the score part , just not to sure how to set the GUI to follow him?
Thanks ![]()
Hi Guys,
I was just wondering how I could go about setting up a text GUI to follow my player ( a cube at the moment)with the score on it?
I know how to do the score part , just not to sure how to set the GUI to follow him?
Thanks ![]()
Create a 3D Text object, then apply this script to it.
var target : Transform;
var height = 2.0;
function Update () {
transform.position = target.position + Vector3 (0, height, 0);
transform.LookAt (Camera.main.transform);
}