Click or drag to resize

CollisionObject2D_InputEvent Method

Accepts unhandled InputEvents. Requires InputPickable to be true. shape_idx is the child index of the clicked Shape2D. Connect to the input_event signal to easily pick up these events.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual void _InputEvent(
	Object viewport,
	InputEvent event,
	int shapeIdx
)

Parameters

viewport
Type: GodotObject

[Missing <param name="viewport"/> documentation for "M:Godot.CollisionObject2D._InputEvent(Godot.Object,Godot.InputEvent,System.Int32)"]

event
Type: GodotInputEvent

[Missing <param name="event"/> documentation for "M:Godot.CollisionObject2D._InputEvent(Godot.Object,Godot.InputEvent,System.Int32)"]

shapeIdx
Type: SystemInt32

[Missing <param name="shapeIdx"/> documentation for "M:Godot.CollisionObject2D._InputEvent(Godot.Object,Godot.InputEvent,System.Int32)"]

See Also