Godot Version
4.2.2
Question
I have a button on my 2D HUD overlay. When I click the button, the main scene’s input event handler is still catching that click. What do I have to change to make sure that the event handling stops with the button’s event handling and does not get passed through?
In the video you can see that a click on the 3D object opens its properties window and a click on the button spawns a new object. But if the cursor is over the button and behind the button there is the 3D object, it triggers the event handling of the scene and not the 2D overlay.
The button’s mouse_filter property is set to Stop