Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Laureline David |
As suggested by the InputEvent Documentation, I want to use _UnhandledInput to handle inputs when they are not already handled by the GUI.
My Scene looks like this
The EditorWorld
node implements _UnhandledInput
(and callsSetProcessUnhandledInput
) but the method is never called even when I don’t click on a visible control.
Implementing _UnhandledInput
on other nodes in the tree does not produce any results either.
I set the mouse filter property of all the transparent controls to both Pass
and Ignore
but the result is the same. The events are all stopped by the UI layer and never fire the _UnhandledInput
method on the rest of the nodes.
Here’s a view of the UI scene in the Godot editor. I have added the orange rectangles to show the invisible spacers.