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

Question UI Buttons don't react on click

Discussion in 'Input System' started by SHISHKOFF, Mar 20, 2021.

  1. SHISHKOFF

    SHISHKOFF

    Joined:
    Apr 21, 2018
    Posts:
    4
    Hey, I got an issue, I decided to replace standard Input system with a new one. After importing it, I changed my players controls and it's all good. But when i'm go to my main menu scene and when i'm trying to click any button - nothing happens. Button highlighted, but my onClick actions does not executing.

    upload_2021-3-20_17-41-57.png

    I'm noticed if i add a new button to scene and for example set to it onclick actions - SetActive(); on one of my gameobjects it's works. So what we get: Old buttons on my scene doesn't work at all, only highlighted when my pointer enter them. But new buttons works like a normal. What can i do fix it?

    My Event System GO:
    upload_2021-3-20_17-43-43.png


    One of my buttons:
    upload_2021-3-20_17-44-9.png

    And also i imported sample from package manager (Rebinding sample) and copy all canvas children from it to my MainMenu canvas, and buttons from Rebinding sample works fine.

    P.S: Input field on my MainMenu scene also works fine, only buttons doesn't react on click
     
  2. SHISHKOFF

    SHISHKOFF

    Joined:
    Apr 21, 2018
    Posts:
    4