Can't get Area2d _Input signal to fire in C#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ondesic

I have the following code for an Area2D Input event:

public void _on_Area2D_input_event(Node n, InputEvent @event, int idx) { }

However, I can’t get it to fire in C#. Pickable is set to TRUE and there is a collision shape. Is my function signature incorrect?

If I try that, it works.

Maybe check your scene File “.tscn” by opening it with an text editor. If its correctly connected. There should be such a line for example:

[connection signal="input_event" from="Area2D" to="Area2D" method="_on_Area2D_input_event"]

juppi | 2020-07-08 06:22