❔ Click event not working in Unity
I have created two buttons, one for previous and one for next. Each one has a method Previous() or Next() attached to it's OnClick event. For Some reason Previous() gets invoked but Next() does not. I did the same thing for both buttons.
I put
Debug.Log("previous was called")
and Debug.Log("next was called")
to make sure and i never see "next was called" when clicking. What could be the issue for this? Something I thought of is that maybe there is something in front of the Next button that doesn't let me click the button but I didn't place anything other than the button there.5 Replies
turns out only one of the two events was working because I had created the Next button by rotating the Previous button. After unchecking the box "ignore reversed graphics" in Raycaster or smth like that it worked. If anyone could explain, I don't really understand this checkbox
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.