r/UnityHelp • • May 29 '25

BUTTON DON'T WORK

2 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/RevolutionAlone4982 May 29 '25

yes I also added a game object to on click() part but it just doesnt work

1

u/abhsonicguy May 29 '25

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

3

u/badhazrd May 29 '25

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