I need help opening a scene (that I have already created) when I click a button.
function OnGUI() {
if (GUI.Button(Rect(10,10,50,50),"Load Scene"))
Application.LoadLevel(name_level);
}
(replace name_level with your own level name)
I need help opening a scene (that I have already created) when I click a button.
function OnGUI() {
if (GUI.Button(Rect(10,10,50,50),"Load Scene"))
Application.LoadLevel(name_level);
}
(replace name_level with your own level name)