LuaFramework_UGUI_V2 icon indicating copy to clipboard operation
LuaFramework_UGUI_V2 copied to clipboard

unity 2020.2.2f1c1中ParticleSystem生成wrap出错

Open HosheaZhu opened this issue 4 years ago • 2 comments

在处理ParticleSystem中GetParticles(NativeArray<Particle> particles)方法时报空。去除ParticleSystem后生成成功。

自己加的log: GetElementType is null type:Unity.Collections.NativeArray`1[UnityEngine.ParticleSystem+Particle] UnityEngine.Debug:LogFormat (string,object[]) ToLuaExport/_MethodBase:GenParamTypes (int) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:299) ToLuaExport:GenOverrideFuncBody (ToLuaExport/_MethodBase,bool,int) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:2779) ToLuaExport:GenOverrideFunc (string) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:2899) ToLuaExport:GenFunctions () (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:1573) ToLuaExport:Generate (string) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:788) ToLuaMenu:GenerateClassWraps () (at Assets/LuaFramework/ToLua/Editor/ToLuaMenu.cs:378) ToLuaMenu:GenLuaAll () (at Assets/LuaFramework/ToLua/Editor/ToLuaMenu.cs:912)

报空的位置: ArgumentNullException: Value cannot be null. System.RuntimeType.MakeGenericType (System.Type[] instantiation) (at <9577ac7a62ef43179789031239ba8798>:0) ToLuaExport+_MethodBase.GenParamTypes (System.Int32 offset) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:300) ToLuaExport.GenOverrideFuncBody (ToLuaExport+_MethodBase md, System.Boolean beIf, System.Int32 checkTypeOffset) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:2779) ToLuaExport.GenOverrideFunc (System.String name) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:2899) ToLuaExport.GenFunctions () (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:1573) ToLuaExport.Generate (System.String dir) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:788) ToLuaMenu.GenerateClassWraps () (at Assets/LuaFramework/ToLua/Editor/ToLuaMenu.cs:378) ToLuaMenu.GenLuaAll () (at Assets/LuaFramework/ToLua/Editor/ToLuaMenu.cs:912)

HosheaZhu avatar Jul 21 '21 04:07 HosheaZhu

我也遇到了。请问解决了吗。

Clouddou2016 avatar Sep 05 '21 04:09 Clouddou2016

一样

hyuhyua avatar Sep 17 '23 09:09 hyuhyua