Delsin-Yu / CSharp-Wrapper-Generator-for-GDExtension

This editor plugin generates C# wrappers for classes from the GDExtension plugins.
MIT License
11 stars 1 forks source link

Wrapper Generater Accidentally Generates Wrappers for Engine Types #19

Open GeorgeS2019 opened 2 months ago

GeorgeS2019 commented 2 months ago

I only have one GDExtension activated e.g. GDMP

Not all classes generated are relevant to the specific GDExtension e.g. GDMP

image image

GeorgeS2019 commented 2 months ago

This is not a big issue right now. However when one need to create individual Nuget for each GDExtension. this could cause extra work to track

ZerxZ commented 2 months ago

This issue is already known, and currently the plugin only supports up to 4.2. We need to wait for this pull request to be merged to fundamentally solve the problem. https://github.com/godotengine/godot/pull/90703

Delsin-Yu commented 2 months ago

This is indeed a big issue right now, currently, we obtain classes through the ClassDB API, which only gives us a list of strings, and there is no way of knowing which one is a GDExtension class. Our current approach is really jank, which leads to these editor types flying around. As mentioned by @ZerxZ, our feature request is there, we should have proper support once it's merged.