jacksondunstan / UnityNativeScripting

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

Define Arrays parameter caused an error #41

Closed sekkit closed 5 years ago

sekkit commented 5 years ago
                        "Name": "Game.Utils.Logger",
            "Methods": [
                {
                    "Name": "info",
                    "ParamTypes": [ 
                        "System.Object[]" 
                    ] 
                },
                       ]

use of undefined type 'System::Array1<System::Object>'  NativeScript    C:\Projects\Research\unitycpp\Unity\Libs\CppSource\NativeScript\Bindings.cpp    5986    
sekkit commented 5 years ago

After reading issues and your blog, this problem is solved. I strongly recommend simplify the type definition process... kinda complexity for newbies.

jacksondunstan commented 5 years ago

I'm glad to hear that you solved the problem. Please feel free to recommend any simplifications to the config file format.

sekkit commented 5 years ago

Yeah, I already modified the generatebinding a bit, but a editor/config tool is required in the future if use it in real project