jacksondunstan / UnityNativeScripting

Unity Scripting in C++
https://jacksondunstan.com/articles/3938
MIT License
1.33k stars 135 forks source link

Bug preventing the generation of bindings. #59

Closed SeleDreams closed 4 years ago

SeleDreams commented 4 years ago

I've closed my two previous issues to rewrite it in one that is more detailled.

Basically, I don't know why, when I add my custom functions to the json, the bindings generator seems to fail to be able to generate bindings. It seems to get stuck in a loop of waiting for code compilation.

I have made tests though that confirmed that all my code was built by modifying some code and trying some stuff in play mode..

I've made a video showing my issue. I don't know what causes it, but it makes it really hard to do anything. It seems like the bindings get built when I remove the AbstractDiscordCodeGenerator, however, while it is built it won't reference the CustomCPPFunctions either, which is a problem.

I honestly don't know what to do, since these issues are causing a net stop in my workflow preventing me from working on features I planned to implement to my project https://youtu.be/9s4uTJNgLB4

SeleDreams commented 4 years ago

The issue came from my modified Bindings.cs.