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

Question Button can be highlighted but can not be pressed.

Discussion in 'Scripting' started by Sakurinh, Aug 11, 2023.

  1. Sakurinh

    Sakurinh

    Joined:
    Jul 26, 2017
    Posts:
    15
    My project has a weird problem. I've been searching for hours, but there is only solution for "button won't work". In my case, those are able to be highlighted while mouse is over but nothing happen when I clicked even with just simple print(" "), and the color has not been changed to "pressed" too. The buttons work perfectly in other scenes. Does anyone have any suggest? Thank you for attention.
     
  2. Sakurinh

    Sakurinh

    Joined:
    Jul 26, 2017
    Posts:
    15
    Sorry, I found the cause of that. It's in the new input system. When I click on the button, my left mouse is doing its job in controlling too. I'm trying to solve this. But always appreciate any help. Thanks for your attention!