So this is my rellavant code:
var Point : Vector3;
var Clicked : boolean = false;
function Update ()
{
var Point = Camera.main.WorldToScreenPoint(gameObject.transform.position);
}
function OnGUI ()
{
GUI.Button(Rect(Point.x,Point.z,200,30),"Button");
}
So can you guys please tell me what’s going on the Button just appears in the top left corner.