Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity 2019.4.20f1 "Generate All"出错 #238

Open
kkqihan opened this issue Sep 17, 2021 · 2 comments
Open

Unity 2019.4.20f1 "Generate All"出错 #238

kkqihan opened this issue Sep 17, 2021 · 2 comments

Comments

@kkqihan
Copy link

kkqihan commented Sep 17, 2021

ArgumentException: The type 'UnityEngine.RaycastHit&' may not be used as a type argument.
System.RuntimeType.ThrowIfTypeNeverValidGenericArgument (System.RuntimeType type) (at :0)
System.RuntimeType.SanityCheckGenericArguments (System.RuntimeType[] genericArguments, System.RuntimeType[] genericParamters) (at :0)
System.RuntimeType.MakeGenericType (System.Type[] instantiation) (at :0)
ToLuaExport.GenParamTypes (System.Reflection.ParameterInfo[] p, System.Reflection.MethodBase mb) (at Assets/ToLua/Editor/ToLuaExport.cs:2288)
ToLuaExport.GenOverrideFuncBody (System.Reflection.MethodInfo md, System.Boolean beIf) (at Assets/ToLua/Editor/ToLuaExport.cs:2125)
ToLuaExport.GenOverrideFunc (System.String name) (at Assets/ToLua/Editor/ToLuaExport.cs:2173)
ToLuaExport.GenFunctions () (at Assets/ToLua/Editor/ToLuaExport.cs:881)
ToLuaExport.Generate (System.String dir) (at Assets/ToLua/Editor/ToLuaExport.cs:401)
ToLuaMenu.GenerateClassWraps () (at Assets/ToLua/Editor/ToLuaMenu.cs:318)
ToLuaMenu.GenLuaAll () (at Assets/ToLua/Editor/ToLuaMenu.cs:808)

@xia0lei
Copy link

xia0lei commented May 30, 2024

我也遇到相同的问题,请问后面解决了吗

@LouisSong
Copy link

我用的2022版本,没有这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants