reset input touch on load scene,Reset touch input after loadScene
Hi everyone! I'm making a little game for Android, so when you lose a "Game Over" screen displays. Then you have to tap to reload the level.
The problem is that the input of my game works with GetMouseButton, and when the scene restarts, the input is already being detected from the previous scene. If you press reload quickly enough, it doesnt happen, but normally it does. I need a way to clear all mouse or touch inputs, so when the scene starts, the finger you are still pressing is not detected anymore. Thanks for your time!,Hi everyone! I'm making a little game for Android, so when you lose a "Game Over" screen displays. Then you have to tap to reload the level.
The problem is that the input of my game works with GetMouseButton, and when the scene restarts, the input is already being detected from the previous scene. If you press reload quickly enough, it doesnt happen, but normally it does. I need a way to clear all mouse or touch inputs, so when the scene starts, the finger you are still pressing is not detected. Thanks for your time!
Your answer
![](https://koobas.hobune.stream/wayback/20220613052810im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Android| Camera scrolling 1 Answer
TouchPhase.Stationary firing while moving 0 Answers
Please Help Im confuse im beginner in using unity. 1 Answer
Multitouch doesn't work 1 Answer