Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

UI buttons not working after loaded scene

Discussion in '2D' started by tanoille2, Mar 24, 2020.

  1. tanoille2

    tanoille2

    Joined:
    Mar 12, 2020
    Posts:
    10
    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.
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @akopositano

    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.
     
    tanoille2 likes this.
  3. tanoille2

    tanoille2

    Joined:
    Mar 12, 2020
    Posts:
    10
    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.