xLua icon indicating copy to clipboard operation
xLua copied to clipboard

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.

Results 221 xLua issues
Sort by recently updated
recently updated
newest added

12-13 15:55:27.919 16685 16707 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr fffd807557a29978 12-13 15:55:27.919 16685 16707 E CRASH : *** *** *** *** *** *** ***...

➜ build git:(master) ✗ ./make_osx_lua53.sh CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value...

工程内自定义代码命名空间为 Frame 同时引入了 FairyGUI 库 上述代码都会被打入 Assembly-CSharp.dll 中,当打 il2cpp 包时 `internal Type FindType(string className, bool isQualifiedName = false) { foreach (Assembly assembly in assemblies) { Type klass = assembly.GetType(className); if...

虽然可能没人这么写代码,不过测试确实发现有问题; 例如定义下面这样的类型 ``` public class GGGG { public class III { } } ``` LuaCallCSharp函数定义为 ``` public static GGGG.III Test(GGGG.III arg) { return null; } ``` 那么生成的wrapper对泛型参数的生成是错的 ``` [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static...

项目中想使用多个,但是发现第二个new的时候,会和前面创建的luaEnv有共享的内容

就是刚新搭建的项目,忽然发现Unity能识别.lua的文件了,而不是从前的教程中说的 需要改成.lua.txt。 一路发现了 这次今年的提交 #[c2cbaf8d ](https://github.com/Tencent/xLua/commit/c2cbaf8d0cdd59a7deb8d16e8963c6f298b709ae)。 新增有 `LuaImporter`,`LuaAsset` ,`XXTEA` 这些文件。似乎是关于导入和加密的 不过我并没有查到怎么使用。简单的`require`似乎找不到文件。

我是游戏切换账号时,退出重登切换场景到CleanScene调用的dispose, 在此之前也做了清理引用和GC的操作了,但多次切换后,偶尔会出现dispose失败的报错, 打印未释放的信息都是lua里Instantiate的某个对象, 出现try to dispose a LuaEnv with C# callback!后再玩会游戏就会崩溃了。 于是,我做了对全部对象调用xlua.release,延迟一会调用dispose,把dispose调用放在两层嵌套的函数里调用等等操作。 但都行不通,大概4,5次切换后还是会出现dipose失败的报错。而且未释放的都是lua里调用的Instantiate。 后来发现是切换场景后luaBase的析构函数未调用。 实在想不通,也找不到解决办法,想请教一下

Unity 版本:2019.2.3f1,XLua版本:7月24号下载的master主干的XLua包 1.在Unity编辑器上运行完全没问题,但是把它build成一个apk安装进手机后,就一直报LuaException: xlua.access, no field __Hotfix0_Update。 说明:1.我试过在Unity中先执行了两步注入,再build出apk, 2.我也配置了HOTFIX_ENABLE 3.我也从Unity2019.2.3f1中拷贝了Unity.Cecil.dll、Unity.Cecil.Mdb.dll、Unity.Cecil.Pdb.dll到XLua/Src/Editor中 依然还是LuaException: xlua.access, no field __Hotfix0_Update。 备注:同样的做法,我用在Unity2017.2.0版本上build出来的apk,可以成功运行,没问题。 请问我现在是什么问题?是不是哪里配置不对。帮忙指导下,谢谢。 ![1595595552(1)](https://user-images.githubusercontent.com/61776334/88393738-bcb44f80-cdf0-11ea-8a58-f054309489f9.png)

Error:can not find delegate for MobaResDBMeta.ResSkillEffectExport.GetEffectType! try re-genertate code. 我看了有这方面的问题,说是更新xlua版本可以解决,我更新到xlua_v2.1.15 还是有这问题 代码是这样的 不存在 delegate public class ResSkillEffectExport : ResExport { private ResSkillEffect m_ResSkillEffect = null; public void OnInit(object ResSkillEffect_res) {...