- Home /
Question by
jacko12127-2 · Aug 04, 2011 at 10:40 PM ·
application.loadlevel
Main menu script
Hello im trying to make a script where you click a button and it takes you to the map you select im using
function OnGUI () { if (GUI.Button (Rect (10,10,150,100), "I am a button")) { print ("You clicked the button!"); } }
But i changed it to:
function OnGUI () {
if (GUI.Button (Rect (10,10,150,100), "Go to Swamp Map")) {
Application.Loadlevel(1);
}
}
But it doesnt work i get the error: MissingMethordexeption: Methordnotfound: unityengine.Application.Loadlevel
Sorry im new to this so any help is apreciated!
Comment
Your answer

Follow this Question
Related Questions
How to Load a current level as back? 1 Answer
LoadLevel help! 1 Answer
I am trying to play sound clip immidiately before loading new scene 3 Answers
Application.LoadLevel wrong loading of Level 1 Answer
IE Numerator & Application load level 2 Answers