Event Trigger Cancel apparently not working

Hello,

I’m really hoping someone can explain to me what I’m doing wrong with the Event System.
I’m trying to set it up so a Game Object is disabled when the Escape key is pressed using the Event Trigger / Cancel component (I know how to do it via script) but for some reason it just ignores the key press totally and does nothing. I’ve tried with Cancel, Submit, and even changing the Input Module options for other keys, but to no avail.
If anyone could tell me what I’m doing wrong, or even if it’s possible to achieve what I want using this Event System, that was be awesome.

Thanks.

I think you need an Selectable class on that - something like a Button. Add one of those and it should work.

As far as I tested, it only works in the final Build, not in the Editor.