0 votes

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.

in Engine by (63 points)

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?

1 Answer

0 votes
by (63 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.