xLua
xLua copied to clipboard
xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
使用环境 win10 参考这篇文档 https://www.cnblogs.com/AutoMaintyc/articles/16788874.html ps4 sdk版本 10.0.0 加入缺失的h文件后,重新编译阶段 
我看更新日志里面支持switch平台, 问下大佬, 想编译Switch平台用的XLua版本, 有可以学习地方吗?
DllNotFoundException: Unable to load DLL 'xlua'. Tried the load the following dynamic libraries: Unable to load dynamic library 'xlua' because of 'Failed to open the requested dynamic library (0x06000000) dlerror()...
When using Hotfix with Unity Obfuscator, HotFix Injection is performed first using the PostProcessScene Attribute. If Obfuscator is performed later, the dll changed by HotFix does not match the existing...
static bool ObjectValidCheck(object obj) { return (!(obj is UnityEngine.Object)) || ((obj as UnityEngine.Object) != null); } 上面接口会每帧检查非UnityObject,进行销毁。如果非UnityObject对象,比如List的话,只能通过lua层置空,然后等C#的collectObject去销毁吗?能不能也有类似的检查方式去处理
gen wrap file fail! err=TemplateCommon:200: attempt to index a nil value (field 'FullName') stack traceback: TemplateCommon:200: in upvalue '_CsFullTypeName' TemplateCommon:213: in function 'CsFullTypeName' [string "luatemplate"]:563: in local 'callback' TemplateCommon:145: in...
unity2021正常的项目升级2022,在new LuaEnv();的时候报错: DllNotFoundException: xlua assembly: type: member:(null) 再切到2021,项目正常运行。 请问unity2022里应该怎么处理。 unity版本为2022.3.20f1c1
我正在使用 GCOptimize 特性在 C# 和 Lua 之间传递结构体,以避免内存分配。但是在我的一些数据中,我存储了一个 IntPtr 值。这似乎导致周围的结构体被装箱为用户数据,而不是按值传递。例如: [GCOptimize] public struct Bar { public IntPtr Daz; } public static class LuaApiTests { // 当从 Lua 调用时,这个函数工作时不会有任何内存分配 public static IntPtr...
允许在方法上添加Hotfix特性,并设定HotfixFlag值为IgnoreThisMethod。 这允许不为此方法生成DelegateBridge,也不会注入该方法。 这解决了热更类型想要排除特定方法的问题。 这将用于含有Span或ref like类型的参数的方法,这些方法生成的DelegateBridge,无法编译通过。 如果想要正确编译,只能排除包含这个方法的类型,而这个类型的其他方法可能是需要热更的,现在的黑名单机制无法实现这一点,导致xlua用起来特别不灵活。