- Home /
InputSystem simulated touchscreen stops working from v1.1.0 preview 1
Hi,
I am working on Unity 2019.4.0f1 with the InputSystem package to develop a mobile game. Until then, I was using the 1.0.0 version and everything was working fine in the editor with the simulated touchscreen feature (enabled from the InputDebug window > Options > Simulate Touch Input from Mouse or Pen). I made a build and tried it out on android today and had a bug sometimes, the begin phase was not called when iterating over the Touch.activeTouches collection. This bug was apparently fixed in version 1.1 preview 1 here, so I updated to version 1.1 preview 1, and the bug was indeed gone in the build version, however, I got another bug showing up related to the simulated touchscreen.
When I start the game once in the editor window, everything is working as expected. But when I stop the simulation and run it again, Touch objects contained in the Touch.activeTouches collection have either their phase to "Stationary" or "None", and other phases do not show up at all. Trying to stop and relaunch the simulation would not help. However, if I quit and reopen the editor, it works again... only once. Is this a known bug? Some other people in my team experienced the same problem, so it doesn't seem it is related to my computer.
Thanks for your help!
Your answer
Follow this Question
Related Questions
TouchPhase not firing correctly - Android 3 Answers
Bug moving a character with onscreen Joystick prefab 0 Answers
Unity 2D Touch Controll via on screen button for Mobile 0 Answers
Touchscreen scrolling without clicking 0 Answers
Infuriating bug: Android build occasionally dropping touch input. 0 Answers