xLua
xLua copied to clipboard
xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
看到隔壁puerts的性能测试表现, https://github.com/Tencent/puerts/blob/master/doc/unity/zhcn/il2cpp/performance.md 是否考虑在安卓平台+il2cpp模式下通过提供静态xlua.a库,使其可以link到il2cpp.so中以减少PInvoke引入的跨语言调用的消耗? 大概的改改动: 1. 提供安卓平台编译xlua.a静态库的脚本 2. 开启某个宏(比如:XLUA_FORCE_INTERNAL_PINVOKE)的情况下,以下PInvoke使用`__Internal`方式 ```cs public partial class Lua { #if (UNITY_IPHONE || UNITY_TVOS || UNITY_WEBGL || UNITY_SWITCH) && !UNITY_EDITOR const string LUADLL = "__Internal"; #else...
lua54_v2.1.16_ndkr21b x86_64的plugin里是不是少个dll
Hi. Is it posible to use Xlua on Switch ? When I tried a build on a simple project with only Xlua on it : the build failed without signifiant...
 请教大佬们怎么定位这个闪退问题。感谢!
xlua的代码固然能正常debug,但原本的C#代码应该是被转成wrap文件了吧,就没法调试了。试了下jetbrain rider 和 vscode都一样的挂不住断点。有没有可用的debug方式?
在examples的luacallcsharp的脚本里案例是给了一个string参数的委托,我尝试自己写了一个string和一个int作为参数的委托: //=========== in C# =========== [CSharpCallLua] public delegate void TestDelegate1(string param, int num); public TestDelegate1 testNewDelegate; public void csDelegate1(string param, int num) { Debug.Log("TestDelegate in c#:" + param + "...
当lua代码出现死循环我该怎么停止运行这个时候button没有反应
``` profiler.start() local tbl = CS.xxx:xxx() CS.UnityEngine.Debug.LogError(profiler.report("TOTAL")) profiler.stop() ```
Running the example from https://github.com/Tencent/xLua/tree/master/Assets/XLua/Examples/12_ReImplementInLua fails with the following error: ``` LuaException: [string "chunk"]:37: invalid c# struct! stack traceback: [C]: in field '?' [string "chunk"]:37: in metamethod '__newindex' [string "chunk"]:4:...
LUADLL里只有lua_setmetatable的接口, 缺少lua_getmetatable的接口,希望能加上