Hello all. I’m making a simple android game. I need to change scene when the screen is touched. It works ok on the PC with a click, but it doesn’t work on android. I have already seen some questions with the same problem but none of them had a working answer. The code I am using is:
Ah. I had this same problem. I think the solution that worked for me was when you build to Android you UNCHECK Split Application Binary. Google Play DOES still allow you to submit to the Play store without split application binaries so you’re good there. I think it has something to do with the interaction between the two binaries when Unity builds.
I tried your code in my android project and it was working fine.
Are you sure you are not mispelling your “Level Name” ? The string is case sensitive so “level name” and “Level Name” (or whatever the real name is) are not equals.
Also be sure you added the level you want to load in your build settings :
Load the scene in the editor then in Edit->Build Settings : click on “Add Current”