As stated in the topic, im trying to have my unit, represented by umg widget, be deselected when player will press right mouse button anywhere, doesnt have to be over the widget, but seems there is no way to implement an event on mouse button. Anyone found a solution to that?
There is a function called On Mouse Button Down
EDIT: Sorry my bad, if you want the click to work everywhere, best thing to do is to open the player controller, right click and find “Right Mouse Button”, and call any event on the widget you have(you need to have a reference to the widget)
You can also check for is key down on tick but you’d then have to compare with previous values to trigger your own on released and on clicked events