Hey guys I have a problem with the GUI. I have created a script for my main menu but when I hit play it don’t show up.
#pragma strict
function Start () {
}
function Update () {
}
function onGUI () {
GUI.Box(Rect(Screen.width / 2 - 800, Screen.height / 2 - 600, 800, 600), "");
if(GUI.Button(Rect(Screen.width / 2 - 600, Screen.height / 2 - 500, 200, 100), "QUIT")){
Application.Quit();
}
}
I have linked it to my background plane but still nothing happens.