- Home /
This question was
closed Apr 30, 2013 at 09:17 AM by
Fattie for the following reason:
Duplicate Question
Question by
ZenDelta · Apr 30, 2013 at 08:49 AM ·
androidgui.button
If GUI.Button won't work on Android
I just tried to launch a game for Android-devices, but I got a major bugger that won't launch the game. As the title say, the if-statement for a GUI.Button to start the game won't work, it just stand on the same scene without doing anything. Is it a quick way to solve this?
if(GUI.Button(new Rect(450,350,500,100),"Start game"))
{
Application.LoadLevel(1);
}
Comment
click Build Settings and look at the scenes you have included in the build. Secondly, add a line of code Debug.Log("I got to here") inside the braces.
pls search first with simple questions like this, cheers
Follow this Question
Related Questions
Touch on GUI.Button HELP!!!! 3 Answers
GUI.Button won't work while Joystick is being moved. 1 Answer
GUITexture for android 0 Answers
Android GUI Button problem 2 Answers
Screen moves on clicking the button 1 Answer