I made a game which requires touch controls using the new Input system with the “touchscreen.current” thing. It worked fine on my phone in development until the playtesters got it, and it didn’t work on their phones. The touch wasn’t being registered, everything else was fine. I have tried removing UI, using the old Input Manager, removing event system but nothing worked. Please help this is my first game in about a year.
Your game is probably just throwing some exception.
Use adb logcat
and get the log output from the game when it is failing, see if you can get any intel about what is going wrong.
If that’s not it, well, it just sounds like you wrote a bug… and that means… time to start debugging!
By debugging you can find out exactly what your program is doing so you can fix it.
Use the above techniques to get the information you need in order to reason about what the problem is.
You can also use Debug.Log(...);
statements to find out if any of your code is even running. Don’t assume it is.
Once you understand what the problem is, you may begin to reason about a solution to the problem.
Remember with Unity the code is only a tiny fraction of the problem space. Everything asset- and scene- wise must also be set up correctly to match the associated code and its assumptions.