目前luajit作者不打算维护luajit,在找人接替其维护,后续发展不太明朗。 xlua_general:用于通用的.Net或Mono环境,可以在非Unity环境中使用。 目前lua53版本使用较多,所以xLua工程Plugins目录下默认配套是lua53版本,我们后面学习中也会使用这个版本。 安装 安装非常简单,新建一个Unity工程。 打开zip包,你会看到一个Assets...
IsAssignableFrom(type)) { #if !XLUA_GENERAL UnityEngine.Debug.LogWarning(string.Format("{0} not gen, using reflection instead", type)); #else System.Console.WriteLine(string.Format("Warning: {0} not gen, using reflection instead", type)); #endif } #endif } if (top != LuaAPI.lua_...
任务类型我们选择"构建一个自由风格的软件项目" 点击确定后继续在新打开的页面中选中General选项卡 在General选项卡页面下拉到底部,在构建那一栏选择"增加构建步骤",并选中"执行windows批处理命令" 接着在命令栏里输入命令: cd /d D:\luaframework git pull git submodule update --init --recursive python package...
通过查看exe工具源码可知,最终实际完成代码注入的还是在Hotfix.cs文件中定义的重载方法HotfixInject,相关代码通过XLUA_GENERAL宏做了条件编译。 // Hotfix.cspublicstaticvoidHotfixInject(stringinjectAssemblyPath,stringxluaAssemblyPath,IEnumerable<string>searchDirectorys,stringidMapFilePath,Dictionary<string,int>hotfixConfi...
GEN_CODE_MINIMIZE && !ENABLE_IL2CPP && (UNITY_EDITOR || XLUA_GENERAL) && !FORCE_REFLECTION && !NET_STANDARD_2_0if(!DelegateBridge.Gen_Flag&&!type.IsEnum()&&!typeof(Delegate).
"); } #if XLUA_GENERAL invoke = injectAssembly.MainModule.ImportReference(invoke); #else invoke = injectAssembly.MainModule.Import(invoke); #endif FieldReference fieldReference = null;//插入的类静态字段,用来标记是否有对应的Lua注入 VariableDefinition injection = null;//方法中的变量顶一 bool isInt...
核心部分定义XLUA_GENERAL后,可以在Unity之外的环境运行 Feb 15, 2017 Test 性能测试用例 Feb 14, 2017 build 让生成的工程保留原来的代码目录结构 Feb 9, 2017 .gitignore 1、封装getglobal,setglobal的lua异常; Jan 11, 2017 LICENSE.TXT first commit ...
usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingCSObjectWrapEditor;usingUnityEditor;namespaceXLuaCustomEditor{// This class changes Generate Code Output Path From XLua/Gen to XLua/Runtime/GenpublicclassCustomGenerator{#if XLUA_GENERALpublicstaticstringgenPath="./Gen/";#elsepubl...
General Test Tools WebGLPlugins build docs .gitignore .travis.yml LICENSE.TXT README.md README_EN.md Repository files navigation README License (English Documents Available) C# 下 Lua 编程支持 xLua 为 Unity、.Net、Mono 等 C# 环境增加 Lua 脚本编程的能力,借助 xLua,这些 Lua ...
git config --global user.name userName git config --global user.email userEmail 分支2 标签23 johnchewebgl下编译报错9ee9f1316天前 960 次提交 提交 .github/workflows Fix github build (#1178) 4个月前 Assets 配置报错 5个月前 General