jarjin / LuaFramework_UGUI_V2

基于tolua的热更新框架V2
619 stars 170 forks source link

求告知生成wrap文件时报错怎么解决?报错内容如下 #25

Open BlisonFCF opened 4 years ago

BlisonFCF commented 4 years ago

System.ArgumentNullException: Value cannot be null. at System.RuntimeType.MakeGenericType (System.Type[] instantiation) [0x00069] in :0 at ToLuaExport+_MethodBase.GenParamTypes (System.Int32 offset) [0x00094] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:298 at ToLuaExport.GenOverrideFuncBody (ToLuaExport+_MethodBase md, System.Boolean beIf, System.Int32 checkTypeOffset) [0x0012e] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:2777 at ToLuaExport.GenOverrideFunc (System.String name) [0x00173] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:2897 at ToLuaExport.GenFunctions () [0x0007c] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:1571 at ToLuaExport.Generate (System.String dir) [0x000b7] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:786 at ToLuaMenu.GenerateClassWraps () [0x00112] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaMenu.cs:376 at ToLuaMenu..cctor () [0x00340] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaMenu.cs:118 UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes() (at E:/unity/Editor/Mono/EditorAssemblies.cs:168)

yicong1406410220 commented 4 years ago

我也出现了这个问题

yu13473054 commented 4 years ago

将_GT(typeof(ParticleSystem))注释掉就能正常Wrap,估计是项目在Wrap时没有兼容新版本的API的原因。

yicong1406410220 commented 4 years ago

将_GT(typeof(ParticleSystem))注解可以正常包装,估计是项目在Wrap时没有兼容新版本的API的原因。

谢谢,我已经正常了