Issue with connecting signal method

Godot Version

Godot-4

Question

i cant figure out why im getting the:
'E 0:00:05:0689 emit_signalp: Error calling from signal ‘body_entered’ to callable: ‘RigidBody2D(FinishLine.cs)::_finish_line_crossed’: Method not found.
<C++ Source> core/object/object.cpp:1200 @ emit_signalp()
’ issue.

this is my code:
'using Godot;
using System;

public partial class FinishLine : RigidBody2D
{
public static bool FinishLineCrossed = false;

public void _finish_line_crossed()
{
	GD.Print("Yes");
}

}’

and this is the signal:


everything seems correct to me, i have never had this issue before.

The function needs to match the signal’s parameters too, try adding (Node2D body)

no way it was that easy, i just didnt expect that being the requirement.

image

this works