Is it possible to know when user click/tap somewhere in the screen and not change behaviour of this click.
What I need is a popup-like slate widget that disappears on a click somewhere in the screen. And that click that closes this widget should do what it would do if there was no such widget on the screen.
What I have tried:
-
I tried to use screen-sized fully transparent Border as child of my widget and handle OnMouseButtonDown and OnPreviewMouseButtonDown in my widget. But no matter what I return “unhandled” or “handled”, click doesn’t get through my widget.
-
I tried to check IsInputKeyDown of player controller in the Tick function. But this event doesn’t fire if I click on slate elements (it works only if I click on the scene).