Good morning everyone,
I am making a 2D game in Unity 2020.3.14f1, and I have the following bug/problem.
I have 2 buttons to move left or right in the bottom left corner.
In the Editor (debugging), when changing scene, if I don’t move the mouse and I’m over one of these buttons when I click it doesn’t work (it clicks on the coordinate 0,0). To make it work I have to move the mouse 1 pixel and click in the button again :v
With the project installed on the mobile (apk), if the user changes level (scene) and wants to continue clicking any move button (does not lift the finger while Unity changes scene), it happens the same as in the editor. But if the user changes scene one second time without lifting the finger → Unity crashes
Desired behavior: if the user has a button pressed while changing scenes, this raycast area should look for a button and click it automatically without Unity crashing.
P.S.: I am using New Input System and the button has the ‘On-Screen Button’ Script (onclick button is empty). I don’t Know if it’s necessary to change anything at Input System UI Input Module (in EventSystem)
So you’re aware, this is the wrong forum for your post because whilst you might be making a 2D game, it has nothing to do with any specific 2D features which is what we try to keep this forum for.
There’s dedicated UI and Input forums (amongst others) here which can be found from the main forum page.