Search Unity

OnClick() for UI Buttons does not work [ANOTHER ONE]

Discussion in 'Editor & General Support' started by vfabier98, Apr 15, 2021.

  1. vfabier98

    vfabier98

    Joined:
    Apr 15, 2021
    Posts:
    2
    Hi guys, sorry, i'm getting a little frustrated. I was following this course on UnityLearn
    Recorded Video Session: Quiz Game 1 - Unity Learn
    I've follow this step by step. I'm new to Unity so I would like to have some help. As the title says i cannot click on the button to give the answers. The strange thing is that i've made just another scenes for the game menu where i have to click to let it start. With the game scene instead the buttons don't work.

    I've already searched online but some threads are to advanced. I read that i could have a canvas that blocks any interaction with button but i don't know how to make a test or what option to check. I've looked over all the functionalities but found nothing.

    Buttons are created by a pool function.
    Buttons are all interactable.
    Buttons are all Raycast Target True (still do not know what that means)

    Solved: I kept trying. I've looked at every panel. I had one that was not resized and was over the buttons.
     
    Last edited: Apr 15, 2021
    Kurt-Dekker likes this.