I’m trying to make a panel get disabled (setActive(false)) whenever the player clicks outside of the panel.
I looked up how to do this, and it pointed to adding an Event trigger of Deselect.
Whenever I test it, when I click outside of the panel, nothing happens.
To see if the event trigger is actually working, I tried setting it to PointerClick and PointerEnter, and it works fine.
How do I use Deselect correctly? If it can’t be used for the way I want it to, how should I do it?