You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means consuming GDExtensions is currently possible, but not ideal (because we lose type safety).
The bindings generator retrieves everything from ClassDB and generates the glue, we would probably need to refactor it so we can allow generating only certain classes (like the ones registered through GDExtensions).
==> Addressed here
The generated bindings source code use unsafe code blocks which would require user projects to also enable unsafe code blocks and, in my opinion, this is not acceptable.
It may be possible to use C# Source Generators to generate the proxy types for GDExtension types when building the C# project, but as far as I know no one has started working on this at the moment.
Feedback
It is amazing that the wrapper codes generated WORKS!
However, the performance needs to be addressed based on previous feedback from others.
I could be wrong. Hopefully we all learn together.
Reference1
==> Addressed here
==> here we are not generating unsafe code
Reference2
Reference3
the situation is similar to interop with GDScript, where you would also rely on GodotObject (or ClassDB I guess)
Reference4
It may be possible to use C# Source Generators to generate the proxy types for GDExtension types when building the C# project, but as far as I know no one has started working on this at the moment.
Relevant only to GDMP
The text was updated successfully, but these errors were encountered: