GUIButtons Follow different GameObjects??

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"))
}

Im new to unity, but you might try adding the objects to an array and iterating through it.

            public GameObject cube1;
            public GameObject cube2;
            public GameObject cube3;
            public GameObject cube4;
            public GameObject cube5;
        
            var objectArray =[cube1,cube2,cube3,cube4,cube5];
         
            void OnGUI()
        {
           for(i=0,i=5,i++){
            Vector3 V = Camera.main.WorldToScreenPoint(objectArray*.transform.position);*

if (GUI.Button(new Rect(V.x,Screen.height - V.y,300,200),“cube1”))
}
}