Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Support #29

Open
ZachAR3 opened this issue Jan 21, 2024 · 2 comments
Open

C# Support #29

ZachAR3 opened this issue Jan 21, 2024 · 2 comments

Comments

@ZachAR3
Copy link

ZachAR3 commented Jan 21, 2024

The plugin doesn't appear to work with C#, as the typing doesn't work correctly and because of that it can only be using with .Call or with signals, which makes it a pain to try and await a files selection or use in any real project. Awesome plugin for GDScript so would love to see some proper C# support if that's possible, or if it already supports it and I just don't know how to link it in the compiler / my IDE it'd be great to learn how to.

Edit: Got it working, seems you need to first run your project with CMD with this flag --generate-mono-glue and then it will have all the plugins show up nicely in C#. Not sure if this is something you can fix from the GDExtension side or if its just a Godot limitation until they fix the awful C# glue implementation, if not may be worth mentioning this in the read me though. This doesn't work

@98teg
Copy link
Owner

98teg commented Jan 22, 2024

Thanks for the tip! Do you have a source where I can point the users to for further reading?

@ZachAR3
Copy link
Author

ZachAR3 commented Jan 22, 2024

Hmm, upon further testing it appears this fixes the scripting, but creates issues building it since the glue conflicts with the built in glue being used by Godot, meaning nothing will work until it is deleted :/. I will ask in the discord and try to find a solution or if it's even possible at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants