UI buttons not working after loaded scene

I’m working on a 2D platformer and having trouble with my UI buttons(movements). At the start of the level it works fine but but after loading a scene it stop working.

@tanoille2

Not a 2D related question - either a UI or general scripting question.

Check that your next scene also has a GameObject with Event System and Input module. Or if you are using DontDestroyOnLoad setup, make sure it is working as intended.

1 Like

Im using DontDestroyOnLoad setup. And after debugging so many times i noticed that my Joystick controller is missing and my other buttons is not working after my Player died or loaded another scene.