Can GDScript Callable use a C# method

Godot Version

4.6

Question

Hello everyone

I am making a Tactical RPG game, in the style of an Advance Wars, Fire Emblem, Wargroove or Into the Breach

Struggling with the Minimax, I started to look at some premade stuff. The best one I found is right here, that seemed easy to use… Until I remembered that my game is in C#. I looked at the requirement to make the extension work, and I need Callables. I understand the concept of callables, but can I really make a C# callable and use it there just like that ? Or should I use a “translator” file, that will send back and forth datas ? I want to ask before I throw myself into multiple hours of nothing

Thank you in advance

PS : I also tried to find a good Minimax in C#, but they are either for Unity, or seems outdated. But if someone has a viable option, be my guest :sweat_smile:

You can call GDScript from C# and vice versa, check this article out:

1 Like

I see it now. I guess I still had some confusions, but some rereading and a good night of sleep helped me to see it clearly

Thank you

1 Like