My last thread was closed cause of a duplicate i deleted before it was closed, so I try again…
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);
}
IN THE UNITY APPLICATION OPEN "P{LAYER PREFERENCES" LOOK AT THEM HAVE YOU FORGOTTEN TO INCLUDE THE RELEVANT SCENES ? This is the third time someone has explained this post a SCREEN SHOT of your player preferences "scenes in build"
– Fattiehttps://dl.dropboxusercontent.com/u/4938568/Screens/ScreenShot052.png Everything is included and it works fine when I run it in unity and on the unity remote app for android.
– ZenDeltanew Rect(450,350,500,100) this sounds quite big to me for a mobile.
– fafaseAlso, make sure you do not hide useful members. You have a warning that tells you you are doing wrong.
– fafaseHow about a logcat? Maybe you are getting some exception message? Just as a total sane check, also headbutt an Debug.Log in there to ensure the code is actually being called.
– Statement