how to cancel button selected event

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JoeSeki

When I have a button that is pressed I set the selected event. associated with it. if a different button is pressed, I will swap their positions.

How do I detect a pressed event if it not in a button to cancel the selection?

:bust_in_silhouette: Reply From: exuin

If the event is not caught by a button, a node with an “unhandled input” function will be able to catch it and cancel the selection. So just make a node with that function.

Thank you! That got me moving in the right direction.

JoeSeki | 2021-01-13 19:39