ThereHere are few more reasons behind not getting uifour things to check when your UI button click event.. is not firing…
- Please checkMake sure your canvas having Graphics Raycasterhas a
Graphics Raycasterattached. - Your Image component's Raycast Target
Raycast Targetmust be enabled. - Check forMake sure there are no overlapping of other ui component over buttonUI elements.
- Make sure to have EventSystema gameobject with the
EventSystemcomponent in the scene.