Sorry if this seems odd, but I did google it and didn’t find an answer.
How would I make so when a GUI button was pressed the games scene would switch in JS?
(Basically I Have a Menu GUI and I want so when I press “Play” that it switches to the game scene. (Game scene called “Main” ).
Sorry if this seems newbish ;(
My code so far:
function OnGUI {
if (GUI.Button (Rect (10,10,150,100), "Singleplayer")) {
/* Switch the scene */
}
}
Oh yeah, thanks guys I have my google settings kinda eff’d up apparently. I reset them to default, I know you didn’t intend to help me in that way, but you just saved my google, thanks Graham!