© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
Thalnos

❔ 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")
Debug.Log("previous was called")
and
Debug.Log("next was called")
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Unity property unityaction invoke
C#CC# / help
3y ago
❔ Object reference not working (unity)
C#CC# / help
3y ago
❔ my string event click isn't working
C#CC# / help
3y ago