Click or drag to resize

Node_UnhandledKeyInput Method

Called when an InputEventKey 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 key input processing is enabled, which is done automatically if this method is overridden, and can be toggled with SetProcessUnhandledKeyInput(Boolean).

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

For gameplay input, this and _UnhandledInput(InputEvent) 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 _UnhandledKeyInput(
	InputEventKey event
)

Parameters

event
Type: GodotInputEventKey

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

See Also