Skip to content

unity 2020.2.2f1c1中ParticleSystem生成wrap出错 #39

@HosheaZhu

Description

@HosheaZhu

在处理ParticleSystem中GetParticles(NativeArray 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions