How do I create C# bindings of my GDExtension?

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

Title, I’ve been following this guide on GDExtension, it’s a bit outdated, but I got it to work, and tested it with gdscript. Flawless.

However, there are no C# bindings, meaning I can’t call the GDExtension code from C#. How do I generate them if it’s a possible thing to do?

:bust_in_silhouette: Reply From: birdcage

These both seemed to have worked for older versions, although I haven’t tested them yet


Has someone successfully used a GDExtension from C# ?

It looks like it can easily be done by using the ClassDB (and calling functions/classes via string) but I’m wondering if there’s a more robust way to access the GDExtension in C# than strings.