xLua
xLua copied to clipboard
xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
我把 xLua 里使用反射时的 Warning 打开了,且该成了报错,然后我在 LuaCallCSharp 里面配置了 Dictionary,但是运行时会提示我: ``` System.Collections.Generic.Dictionary`2[TKey,TValue] not gen, using reflection instead UnityEngine.Debug:LogError (object) XLua.ObjectTranslator:TryDelayWrapLoader (intptr,System.Type) (at Assets/ThirdParty/XLua/Src/ObjectTranslator.cs:179) XLua.ObjectTranslator:getTypeId (intptr,System.Type,bool&,XLua.ObjectTranslator/LOGLEVEL) (at Assets/ThirdParty/XLua/Src/ObjectTranslator.cs:1062) XLua.ObjectTranslator:GetTypeId (intptr,System.Type) (at Assets/ThirdParty/XLua/Src/ObjectTranslator.cs:1018) XLua.StaticLuaCallbacks:ImportType...
Good afternoon. I noticed in your code the functions using tmpnam. the problem with this function is that it only determines the availability of the filename at the time it...
环境Windows10 Unity 2019.4.26f1 (64-bit) xLua-2.1.16_android_release_lib   每次都是只有13个Wrap类生成报错
**xLua版本2.1.14 没有打开宏THREAD_SAFE 但是开了宏HOTFIX_ENABLE 看代码二者都做了线程安全处理** 网络回调是在主线程处理的,排查了其它多线程使用情况,也是在主线程处理的,没有发现其它线程直接调用的情况,同时有上述的宏,不知道会不会是线程使用问题或者其它使用不规范原因? 崩溃日志如下(3个),不是必现的,偶尔会出现一次,基本上每次地方都不一样。 **求指教谢谢!!!** 崩溃日志1 ========== OUTPUTTING STACK TRACE ================== 0x00007FFC0C84B1AC (libCore) luaopen_utf8 0x00007FFC0C81A4F7 (libCore) lua_settable 0x00007FFC0C850EEE (libCore) xlua_pgettable_bypath 0x00007FFC0C828332 (libCore) lua_getinfo 0x00007FFC0C828495 (libCore) lua_getinfo 0x00007FFC0C81ADEC (libCore)...
`========== OUTPUTTING STACK TRACE ================== 0x00007FFFB86B698A (xlua) lua_newthread 0x00007FFFB86B3B2B (xlua) lua_newthread 0x00007FFFB86B41A5 (xlua) lua_newthread 0x00007FFFB86A24D3 (xlua) lua_next 0x00007FFFB86B9AC6 (xlua) lua_newthread 0x00007FFFB86B9AA8 (xlua) lua_newthread 0x00007FFFB86BBC78 (xlua) luaL_where 0x00007FFFB86BBB45 (xlua) luaL_where 0x00007FFFB86BB8D3...
c# 中 定义一个 int类型的属性 导出到lua 后进行赋值 一个double 类型 26.673076923077 现在生成的warp文件中 使用的是 gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2)(L, 2); 获得的值为 0 使用 gen_to_be_invoked.height =(int) LuaAPI.lua_tonumber(L, 2); 获得的值为 26 请问下这个是故意这样做的的吗?
你好, 在讲Xlua打成UPM包引入项目之后发现ObjectTranslator是个partial class,不能同时位于2个Assembly。 但是要使用UPM引入库就必须遵守[Assembly definition and packages](https://docs.unity3d.com/Manual/cus-asmdef.html)。 这个矛盾点可不可以通过继承的方式解决: ObjectTranslator改成base class,其他地方的partial class通过继承base class实现功能扩展。 但是这样做会不会有什么风险或者肯定是走不通的?
 LuaException: D:/trunk2019/client/Assets/ResourceWorks/lua/MuxicMain.lua.txt: cannot load incompatible bytecode  