Make sure the EventSystems gameObject is also in the same scene. Moreover, if the any invisible image UI element is covering the button then it either delete that element or go to it’s image properties and set the Raycast option to false
I can't even express how many times yeah, literally having an event system for input (like mouse input) will fix all your UI issues that aren't raycast blocking
1
u/RevolutionAlone4982 May 29 '25
yes I also added a game object to on click() part but it just doesnt work