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

![screenshot-20221109-142636](https://user-images.githubusercontent.com/750655/200756395-0bf7da21-2fc6-4203-82b5-3cc584ed8369.png) 如图所示。

问题出现版本:Tag:v2.1.16 操作:将 ExampleConfig 中的注释全部打开,然后点击生成代码按钮,错误如下。 ``` public f__AnonymousType1 __Gen_Delegate_Imp52(System.Type p0, System.Reflection.MethodInfo p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);...

解决了,Unity的Library删掉重新生成再导出可以了。有点坑。。。。。顺便说下,ldump.c lundump.c lundump.h这几个我直接写死了DLUAC_COMPATIBLE_FORMAT对应的内容。应该没啥问题吧。 _Originally posted by @pl01898759 in https://github.com/Tencent/xLua/issues/987#issuecomment-1126148304_ ldump.c lundump.c lundump.h直接写死DLUAC_COMPATIBLE_FORMAT 怎么做的能提供 能提供下方式吗

Failed process stderr log: error: Linking globals named 'luaC_barrier_': symbol multiply defined! ERROR:root:Failed to run llvm optimizations: UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions) 全局范围内没有插件以外的代码有“luaC_barrier_”的定义

很多人不会在lua中修复异步函数,增加一个示例,展示如何处理C#中带有 await 和 async关键字的方法

```CSharp // 配置某Assembly下所有涉及到的delegate到CSharpCallLua下,Hotfix下拿不准那些delegate需要适配到lua function可以这么配置 [CSharpCallLua] static IEnumerable AllDelegate { get { BindingFlags flag = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public; List allTypes = new List(); var allAssemblys = new...

运行时浏览器报错 LuaException: [string "LuaTestScript"]:17: attempt to perform arithmetic on a nil value (field 'up') stack traceback: [string "LuaTestScript"]:17: in function at XLua.LuaEnv.ThrowExceptionFromError (System.Int32 oldTop) [0x00000] in :0 所有文件一个不落都导入了,直接打开下载的包也试过了,发布WebGL时报错问题解决了,运行时浏览器报这个错,请问该怎么解决?

### 触发场景 - 接入unity IAP包(In App Purchasing) - CS代码里using了UnityEngine.Purchasing.Security命名空间 - Android打包inject失败 ### 错误日志 Error:/[ProjectPath]/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll inject Exception! Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'UnityEngine.Purchasing.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters...