i want to make that 4 GUIButtons Follow different GameObjects each, i mean GUIButon1 follow GameObject1, GUIButon2 follow GameObject2.
I have just one GUIButton that follows one GameObject. (cube1),
but i can’t make multiples GUIButtons to different GameObject. i have this. please help…
public GameObject cube1;
public GameObject cube2;
public GameObject cube3;
public GameObject cube4;
public GameObject cube5;
void OnGUI()
{
Vector3 V = Camera.main.WorldToScreenPoint(cube1.transform.position);
if (GUI.Button(new Rect(V.x,Screen.height - V.y,300,200),"cube1"))
}