Tencent / xLua

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
Other
9.39k stars 2.46k forks source link

LuaException: UnityEngine.GameObject does not have a constructor! stack traceback: #1101

Open wangxiaojia0317 opened 11 months ago

wangxiaojia0317 commented 11 months ago

LuaEnv luaenv = new LuaEnv(); luaenv.DoString("CS.UnityEngine.GameObject('abc')"); luaenv.Dispose(); 仓库拉取的源代码 执行Xlua-Clear Generated Code r然后Generate code会出现此异常 Unity Version 2022.3.12f1

arrakakki commented 1 month ago

遇到同样的问题,我是在准备构建Weg_GL目标,重新生成代码之后出现了同样的问题,而且CS.UnityEngine.Debug.Log一类的Unity引擎对象都无法通过lua访问了,麻烦请问一下这个问题有解决方案么?@wangxiaojia0317