Unity 2020.3.14f1 Canvas raycast bug after change scene?

,

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 :frowning:

  • 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)

Thanks in advanced!

Translated with www.DeepL.com/Translator

7720162--968782--Captura.PNG

This is an existing problem in the New Input system.

You can see it yourself: make a blank project, OLD input system, put a button in and watch how it behaves on scene transition… PERFECTLY!

Now import new input system and watch it fail.

Once you have done that, go file a bug so that there are many bugs filed against this obvious glaring edge case failure.

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.

1 Like

Thanks man, it’s true :slight_smile: . I report the bug

How can i close this thread?

No need, I just wanted to make you aware of the other dedicated subject forums.

1 Like