98teg / NativeDialogs

Native Dialogs is a plugin for Godot that allows you to interact with OS-specific dialogs, such as notifications, messages and file dialogs.
MIT License
158 stars 8 forks source link

C# Support #29

Open ZachAR3 opened 9 months ago

ZachAR3 commented 9 months ago

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 commented 9 months ago

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

ZachAR3 commented 9 months ago

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.