FreshRSS

Normální zobrazení

Jsou dostupné nové články, klikněte pro obnovení stránky.
PředevčíremHlavní kanál

How do I capture Button Events in Unity?

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.

❌
❌