Click or drag to resize

Node_UnhandledInput Method

Called when an InputEvent hasn't been consumed by _Input(InputEvent) or any GUI. The input event propagates up through the node tree until a node consumes it.

It is only called if unhandled input processing is enabled, which is done automatically if this method is overridden, and can be toggled with SetProcessUnhandledInput(Boolean).

To consume the input event and stop it propagating further to other nodes, SetInputAsHandled can be called.

For gameplay input, this and _UnhandledKeyInput(InputEventKey) are usually a better fit than _Input(InputEvent) as they allow the GUI to intercept the events first.

Note: This method is only called if the node is present in the scene tree (i.e. if it's not orphan).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual void _UnhandledInput(
	InputEvent event
)

Parameters

event
Type: GodotInputEvent

[Missing <param name="event"/> documentation for "M:Godot.Node._UnhandledInput(Godot.InputEvent)"]

See Also