Godot mono signals with binds

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

each time I try to connect a button “press” signal to a function with binds in C#, I get a “method not found” error on click. As soon as I remove the binds, everything works:

works with
private void _ButtonPressed()


b.Connect("pressed",this,"_ButtonPressed",new object[]{i,j});

doesn’t work with

private void _ButtonPressed(object[] binds)

Is there a bug in Godot, or is it me?

Thanks a lot.

I managed to bypass it with:
b.Connect("pressed",this,"_ButtonPressed",new object[]{new object[]{i,j}});

while the receiving function signature remains

private void _ButtonPressed(object[] binds)

Seems like a bug to me, any thoughts?

Antonb | 2018-02-01 17:02

:bust_in_silhouette: Reply From: Antonb

Turns out it’ a bug: