I made a game which is now stuck in the reviewing process of Samsung Apps.
If I’m testing it on Windows everything works fine, but on some Samsung Tablets this thing keeps happening:
The GUI.Buttons in the level selection won’t work. All it should do is change the scene. The command I used is Application.LoadLevel(Level);
The game doesn’t freeze or anything, it just has no effect if the button is pressed.
It’s my first game on Android, so I have no idea what could be wrong or if there are some hidden error messages I didn’t see. I’m hoping for a quick answer with a possible solution or workaround, as I have not much time left until the game’s release will be announced. Thanks!
Is “i” being initialised correctly? (it’s not shown in your code snippet)
What happens if you hardcode the call to Application.LoadLevel(1); rather than Application.LoadLevel(i+1); ?
Do you have other levels apart from your level selection screen and level 1? If so, try changing their order around in the build settings or rename them to see if there’s any problem affecting only your current level 1.
9-18 15:22:46.416: E/Unity(17470):
Level ‘’ (1) couldn’t be loaded
because it has not been added to the
build settings.
This error happens when you forget to check a new scene in build settings.
Go to your build settings in the editor (File->Build Settings)
Make sure that all scenes that you attempt to load at runtime are checked (have a V next to them).
This is not a pro-answer but it works for me.
- Export the proyect and all assets as new package.
- Create new proyect.
- Import the package in the new proyect.
- Drag the scenes in build settings and put them in the correct position.
- Build the new proyect for android.
- Fixed!