Clicks on widgets are received by 3d viewport

I made a custom user widget. I set its visibility to visible. I made it to focusable. I receive click events on it by overriding the onMouseDown function.

It works, however clicking the widget triggers mouse Events for actors in the level, aswell as for the widget.

Unreal’s built in “button” widget does not do this.
How can i make my user widget block click events for the 3d world?

1 Like

I have found the answer on another thread.
In the onMouseDown event you need to return a node called “handled”.