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.

Question UI Button not workin

Discussion in 'UGUI & TextMesh Pro' started by unity_xXyJqtEjf2yZLQ, Feb 9, 2023.

  1. unity_xXyJqtEjf2yZLQ

    unity_xXyJqtEjf2yZLQ

    Joined:
    Feb 7, 2022
    Posts:
    5
    So, I got three buttons where if one is clicked, it'll change the controller, like changing movements from WASD to TFGH and such, but my button just straight up not working. The first picture is the hierarchy, the second one is the button onclick.
    Here's the hierarchy:
    Screenshot_20230208_073858.png
    And here's the button's onclick:
    Screenshot_20230208_074000.png
     
  2. SocttJame

    SocttJame

    Joined:
    Dec 11, 2017
    Posts:
    5
    1.Check if event system is enable;
    2.Check if something is cover the button and block the raycast;
    3.Check if has GraphicRaycaster binded on canvas's gameObject;
    4.Check if the "Raycast Target" toggle is on in the image binded on The button.