How do I capture Button Events in Unity?
4. Srpen 2024 v 19:40
When making a game menu, how do I hook into "OnSelect"/"OnDeselect"/"OnHighlight"/etc with custom callbacks?
The Button MonoBehaviour doesn't seem to allow subscribing to those events. And extending the class doesn't seem to work either.
I've worked on projects that built their own button system to get around this, but that felt wrong.