Debug tool to figure out where my mouse event goes?

Godot Version

4.3

Question

I often have the problem of a Control or Area2D not reacting to mouse events, because somewhere in my tree one of the stop/pass/ignore settings is wrong.

So I was wondering, if there is some tool or debug helper that would allow me to see where a given event goes, i.e. which node swallows it?

Thanks!

If you want to know which Control is consuming the event then try clicking on it while the game is running and check the Misc tab in the Debugger dock. Check if Last Clicked Control field shows anything. If it does, set that control Control.mouse_filter to Ignore and repeat.

1 Like

That is tremendously helpful, thanks! I had never even discovered that tab before.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.