How to Choose Which Control Node Gets Input First?

Godot Version

Godot 4


I have two control nodes. How do I choose which Node gets input first. I know that Z-level does not control this, but what does?

I ended up rearranging the scene so that the Node I wanted to get the input was lower down the list.

1 Like

There’s no direct way to choose which node gets input first, but you can achieve a similar effect by:

  1. Handling input in child node: Write your input handling logic in the child node’s _input() function. If it consumes the event (using set_input_as_handled() ), it won’t reach the parent.
  2. Forwarding selectively: In the child node, check if the input is relevant to the parent and then forward it using a signal or function call.