I’ve created a UI Panel with a Text as Child and in the Panel I added a Event Trigger: I want that clicking on the panel, it calls a function of another object. I don’t know why but it doesn’t work.
Here a screen.
Please help.
I’ve created a UI Panel with a Text as Child and in the Panel I added a Event Trigger: I want that clicking on the panel, it calls a function of another object. I don’t know why but it doesn’t work.
Here a screen.
Please help.
It sounds like the text child (and any other children) are blocking the click. Make sure they have “Raycast Target” unchecked. Any gameobject lower than the panel in the hierarchy also could block the click. Make sure they either aren’t raycast targets or they aren’t over the panel. Even if the part of the gameobject that you can view isn’t blocking it, if the invisible rect transform dimensions go over the panel, they will block click events.