ialex32x / unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.
MIT License
337 stars 41 forks source link

Generate Bindings And Type Definition error #64

Closed iraymondking closed 2 years ago

iraymondking commented 2 years ago

unity 2019.4.18f1,windows platform

clone the project, and click Generate Bindings And Type Definition. get the error blelow:

Assets\Generated\Windows_QuickJSDelegates.cs(1722,19): error CS0116: A namespace cannot directly contain members such as fields or methods Assets\Generated\Windows_QuickJSDelegates.cs(1722,42): error CS1022: Type or namespace definition, or end-of-file expected Assets\Generated\Windows_QuickJSDelegates.cs(1723,19): error CS0116: A namespace cannot directly contain members such as fields or methods ......

ialex32x commented 2 years ago

Thanks a lot. it's a bug of codegen, I'll fix it.

ialex32x commented 2 years ago

The issue causes compilation error has been fixed. There are other issues that remain in the codegen, I'll fix them later. Such as support of high dimensions array.