tag:github.com,2008:https://github.com/Tencent/UnLua/releases
Release notes from UnLua
2023-11-07T09:03:33Z
tag:github.com,2008:Repository/202060771/v2.3.6
2023-11-07T09:09:22Z
2.3.6
<h3>Added</h3>
<ul>
<li>对UE5.3的支持 <a href="https://github.com/Tencent/UnLua/pull/642" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/642/hovercard">#642</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>lua在GC时偶现崩溃的问题 <a href="https://github.com/Tencent/UnLua/issue/626">#626</a></li>
<li>覆写的函数的Out参数是C++结构体时,Lua不返回会导致崩溃 <a href="https://github.com/Tencent/UnLua/issue/634">#634</a></li>
<li>日志参数不匹配的问题 <a href="https://github.com/Tencent/UnLua/issue/642">#642</a></li>
<li>访问来自非native父类的property时检查有效性 <a href="https://github.com/Tencent/UnLua/pull/661" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/661/hovercard">#661</a></li>
<li>同一个Lua函数绑定多个不同签名的代理导致崩溃 <a href="https://github.com/Tencent/UnLua/pull/660" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/660/hovercard">#660</a></li>
<li>应该支持从L构造FLuaValue类型 <a href="https://github.com/Tencent/UnLua/issue/666">#666</a></li>
<li>特定情况下在Lua中调用TArray的Add接口时内存对齐引起的问题 <a href="https://github.com/Tencent/UnLua/issue/668">#668</a></li>
<li>兼容蓝图Recompile导致FuncMap被清空的情况 <a href="https://github.com/Tencent/UnLua/issue/669">#669</a></li>
<li>清理一些UE5下的编译警告</li>
</ul>
<h3>Changed</h3>
<ul>
<li>FObjectRegistry::Push增加Valid检查 规避一些容器内野指针的情况 <a href="https://github.com/Tencent/UnLua/pull/663" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/663/hovercard">#663</a></li>
<li>每个FLuaEnv持有独立的ClassRegistry和EnumRegistry</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.3.5
2023-05-29T10:44:38Z
2.3.5
<h3>Added</h3>
<ul>
<li>对UE5.2的支持</li>
<li>增加配置选项<a href="/Tencent/UnLua/blob/v2.3.5/Docs/CN/Settings.md#%E8%87%AA%E5%AE%9A%E4%B9%89Lua%E7%89%88%E6%9C%AC">自定义Lua版本</a></li>
<li>增加配置选项<a href="/Tencent/UnLua/blob/v2.3.5/Docs/CN/Settings.md#%E5%90%AF%E7%94%A8FText%E6%94%AF%E6%8C%81">启用FText支持</a></li>
<li>适配UE5.1的UHT <a href="https://github.com/Tencent/UnLua/issue/600">#600</a> <a href="https://github.com/Tencent/UnLua/pull/607" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/607/hovercard">#607</a></li>
<li>禁止在Lua的<code>Initialize</code>函数中访问当前<code>UObject</code>上的<code>UFunction</code></li>
<li>在Lua中<code>loadstring</code>失败时的全路径错误信息输出</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>ENABLE_PERSISTENT_PARAM_BUFFER模式下 Buffer被递归调用的覆盖 <a href="https://github.com/Tencent/UnLua/issue/563">#563</a></li>
<li>在启用<code>AsyncLoadingThread</code>时,异步加载后触发绑定对象到Lua可能引起崩溃</li>
</ul>
<h3>Changed</h3>
<ul>
<li>调整配置文件名称为<code>UnLuaSettings.ini</code> <a href="https://github.com/Tencent/UnLua/pull/596" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/596/hovercard">#596</a></li>
<li>在Lua中<code>NewObject</code>时,Outer传nil时使用<code>TransientPackage</code> <a href="https://github.com/Tencent/UnLua/pull/604" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/604/hovercard">#604</a></li>
<li>当不启用类型检查时,若函数要求有返回值但Lua里不返回,则用默认值作为返回值</li>
</ul>
<h3>Removed</h3>
<ul>
<li>移除 <code>SUPPORTS_RPC_CALL</code> 宏</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.3.3
2023-02-02T10:49:24Z
2.3.3
<h3>Added</h3>
<ul>
<li>增加对<code>EnhancedInput</code>输入绑定的支持</li>
<li>增加 <a href="/Tencent/UnLua/blob/v2.3.3/Docs/CN/Settings.md#%E5%90%AF%E7%94%A8Insights%E5%88%86%E6%9E%90%E6%94%AF%E6%8C%81">启用Insights分析支持</a> 和 <a href="/Tencent/UnLua/blob/v2.3.3/Docs/CN/Settings.md#%E9%BB%98%E8%AE%A4%E4%BC%A0%E5%8F%82">传参方式</a> 配置选项</li>
<li>热重载失败时输出错误日志 <a href="https://github.com/Tencent/UnLua/pull/581" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/581/hovercard">#581</a></li>
<li>自动将启用的<code>UnLuaExtensions</code>的脚本加入打包设置</li>
<li>支持按需重新加载蓝图枚举,也支持用UnLua.Ref来保持引用 <a href="https://github.com/Tencent/UnLua/issues/585" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/585/hovercard">#585</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>编辑器使用<code>Development</code>环境启动后,加载Lua脚本报错时代码优化导致longjmp崩溃的问题</li>
<li>在Lua中遍历TMap字段的Values接口返回值时引起的崩溃 <a href="https://github.com/Tencent/UnLua/issues/583" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/583/hovercard">#583</a></li>
<li>协程里require脚本加载异常 <a href="https://github.com/Tencent/UnLua/issues/551" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/551/hovercard">#551</a></li>
<li>加载<code>socket.http</code>模块时报错</li>
</ul>
<h3>Changed</h3>
<ul>
<li>在启用类型检查时,非法参数不写入实际参数内存块,避免报错后又在使用时崩溃</li>
<li>将<code>UnLuaExtensions</code>的启动时间提前,避免在入口脚本里直接访问的时候这些模块还没启动</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.4.0
2022-12-09T11:26:54Z
2.4.0
<h3>Added</h3>
<ul>
<li>基于2.3.2的BETA版本,支持使用Lua来扩展编辑器<a href="/Tencent/UnLua/blob/v2.4.0/Content/Tutorials/14_EditorExtension">示例场景</a></li>
<li><code>UnLuaInterface</code> 增加 <code>Run in Editor</code>,允许编辑器非PIE(不运行游戏)状态下绑定到Lua</li>
<li>支持Lua扩展自定义菜单、工具栏、控制台命令等</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>打包时提示<code>Binaries/Lua.dll</code>被占用</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.3.2
2022-12-09T11:20:33Z
2.3.2
<h3>Added</h3>
<ul>
<li>增加配置选项<a href="/Tencent/UnLua/blob/v2.3.2/Docs/CN/Settings.md#%E5%B4%A9%E6%BA%83%E6%97%B6%E8%BE%93%E5%87%BAlua%E5%A0%86%E6%A0%88%E5%88%B0%E6%97%A5%E5%BF%97">崩溃时输出Lua堆栈到日志</a></li>
<li>针对自<code>2.2.0</code>版本以来调整的垃圾回收机制的<a href="/Tencent/UnLua/blob/v2.3.2/Docs/CN/UnLua_Programming_Guide.md#%E4%BA%94%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6">说明文档</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>UObject绑定后的元表和其他表相等判断时结果错误 <a href="https://github.com/Tencent/UnLua/issues/281" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/281/hovercard">#281</a> <a href="https://github.com/Tencent/UnLua/issues/567" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/567/hovercard">#567</a></li>
<li>访问UStruct内部的委托会check <a href="https://github.com/Tencent/UnLua/issues/561" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/561/hovercard">#561</a></li>
<li>多次传递委托类型的参数到同一函数时,可能因为Owner失效而无法回调 <a href="https://github.com/Tencent/UnLua/issues/566" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/566/hovercard">#566</a></li>
<li>UE5.1之后构造<code>FProperty</code>报deprecated <a href="https://github.com/Tencent/UnLua/issues/569" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/569/hovercard">#569</a></li>
<li>pairs在参数异常时返回空迭代器,避免lua调试时访问报错</li>
<li>热重载upvalue没有生效</li>
<li><code>UObject.Load</code>传入中文路径时乱码</li>
</ul>
<h3>Changed</h3>
<ul>
<li>在<a href="/Tencent/UnLua/blob/v2.3.2/Docs/CN/Settings.md#%E7%83%AD%E9%87%8D%E8%BD%BD%E6%A8%A1%E5%BC%8F">热重载模式</a>为禁用时,不再加载<code>HotReload.lua</code>,不会替换全局的<code>require</code></li>
<li>在使用<code>LoadObject</code>加载不到对象时不再输出加载失败的日志,而是直接返回<code>nil</code></li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.3.1
2022-11-11T11:40:15Z
2.3.1
<h3>Added</h3>
<ul>
<li>支持UE5.1</li>
<li>支持PS5</li>
<li>增加 <code>UnLua::PrintCallStack(L)</code> 的接口来方便在IDE里断点直接执行输出lua堆栈</li>
<li>更多容器和结构体相关的访问保护,增加<a href="/Tencent/UnLua/blob/v2.3.1/Docs/CN/Settings.md#%E5%90%AF%E7%94%A8%E7%B1%BB%E5%9E%8B%E6%A3%80%E6%9F%A5">悬垂指针检查</a>选项</li>
<li><code>UnLuaExtensions</code> 新增可选集成 <a href="https://github.com/starwing/lua-protobuf">lua-protobuf</a> 和 <a href="https://github.com/xpol/lua-rapidjson">lua-rapidjson</a></li>
<li>增加 <code>FLuaEnv</code> 的 <code>OnDestroyed</code> 事件</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Lua报错输出脚本路径如果太长会被截断</li>
<li>xxx:IsA(UE.UClass) 会报错</li>
<li>Lua覆写Out返回值时无法返回nil <a href="https://github.com/Tencent/UnLua/issues/539" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/539/hovercard">#539</a></li>
<li>安装 <code>Apple ProRes Media</code> 插件后会导致UnLua启动崩溃 <a href="https://github.com/Tencent/UnLua/issues/534" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/534/hovercard">#534</a></li>
<li>Actor的Struct成员变量在Lua里引用,释放后仍旧可以访问 <a href="https://github.com/Tencent/UnLua/issues/517" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/517/hovercard">#517</a></li>
<li>在 <code>print</code> 时参数过多可能会导致Lua栈溢出的问题 <a href="https://github.com/Tencent/UnLua/pull/543" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/543/hovercard">#543</a></li>
<li>LuaGC使用了未初始化的参数 <a href="https://github.com/Tencent/UnLua/pull/548" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/548/hovercard">#548</a></li>
<li>NullPointer error in function 'CheckPropertyType' <a href="https://github.com/Tencent/UnLua/pull/549" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/549/hovercard">#549</a></li>
<li>找不到 <code>UnLua.Input</code> 模块时不会再check了</li>
<li>访问非TArray的结构体数组报错 <a href="https://github.com/Tencent/UnLua/issues/554" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/554/hovercard">#554</a></li>
<li>服务端 <code>Possess</code> 后,新角色上的 <code>InputComponent</code> 输入绑定无效 <a href="https://github.com/Tencent/UnLua/issues/553" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/553/hovercard">#553</a></li>
<li>mac打包找不到libLua.dylib问题 <a href="https://github.com/Tencent/UnLua/pull/557" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/557/hovercard">#557</a></li>
</ul>
<h3>Changed</h3>
<ul>
<li>在<a href="/Tencent/UnLua/blob/v2.3.1/Docs/CN/Settings.md#%E5%90%AF%E7%94%A8%E7%B1%BB%E5%9E%8B%E6%A3%80%E6%9F%A5">启用类型检查</a>时,需要依次返回返回值和Out参数,而不能像旧版本一样忽略不返回</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.3.0
2022-10-08T12:32:34Z
2.3.0
<h3>Added</h3>
<ul>
<li>支持使用 <code>UnLua.PackagePath</code> 的方式来搜索Lua文件,也支持从插件Content目录加载</li>
<li>支持Android下的x86_64</li>
<li>支持自定义预绑定类型,参考<a href="/Tencent/UnLua/blob/v2.3.0/Docs/CN/Settings.md#%E9%A2%84%E7%BB%91%E5%AE%9A%E7%B1%BB%E5%9E%8B%E5%88%97%E8%A1%A8">预绑定类型列表</a>配置选项</li>
<li>支持UE5下的蓝图UMG输入绑定,使用新增的 <code>UnLua.Input</code> 模块,可以做到更细节的输入绑定</li>
<li><code>UnLua.Ref</code> 和 <code>UnLua.Unref</code> 接口,提供将 <code>UObject</code> 生命周期和Lua侧同步的管理机制</li>
<li>提升Lua访问UE函数和属性的性能</li>
<li><a href="/Tencent/UnLua/blob/v2.3.0/Docs/CN/CustomTemplate.md">自定义生成Lua模版</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Mac下编辑器的dylib无法加载</li>
<li>PushMetatable时会使用旧的metatable <a href="https://github.com/Tencent/UnLua/pull/515" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/515/hovercard">#515</a></li>
<li>Delegate的闭包函数的upvalue无法被gc <a href="https://github.com/Tencent/UnLua/issues/516" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/516/hovercard">#516</a></li>
<li>在Lua中访问TArray不存在的字段会报stackoverflow</li>
<li>自动保存的打包设置没有生效</li>
<li>UE5下打包后UnLua配置没有正确加载</li>
</ul>
<h3>Changed</h3>
<ul>
<li>默认关闭运行时对<code>UTF-8 BOM</code>文件头的加载支持,需要兼容请开启<a href="/Tencent/UnLua/blob/v2.3.0/Docs/CN/Settings.md#%E5%85%BC%E5%AE%B9UTF-8%20BOM%E6%96%87%E4%BB%B6%E5%A4%B4">兼容UTF-8 BOM文件头</a>选项</li>
</ul>
<h3>Removed</h3>
<ul>
<li>移除 <code>AddPackagePath</code> 接口</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.2.4
2022-09-01T11:31:57Z
2.2.4
<h3>Added</h3>
<ul>
<li>增加最佳实践工程示例 <a href="https://github.com/xuyanghuang-tencent/LyraWithUnLua">Lyra with UnLua</a></li>
<li>支持配置按C/C++编译Lua环境</li>
<li>支持Lua启动入口脚本配置</li>
<li>支持Lua环境手动启动参数</li>
<li>默认自动将 <code>Content/Script</code> 目录加入打包设置</li>
<li>增加一些指针对象的合法性检查</li>
<li><code>UnLua.HotReload</code> 支持手动指定热重载模块列表</li>
<li>支持Commandlet导出蓝图智能提示信息 <a href="https://github.com/Tencent/UnLua/pull/507" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/507/hovercard">#507</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>UE5下的Script编译警告</li>
<li>智能提示文件重复生成 <a href="https://github.com/Tencent/UnLua/issues/498" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/498/hovercard">#498</a></li>
<li>智能提示蓝图类型使用 <code>_C</code> 后缀 <a href="https://github.com/Tencent/UnLua/pull/493" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/493/hovercard">#493</a></li>
<li>PIE运行状态下保存对象,可能引起编辑器崩溃 <a href="https://github.com/Tencent/UnLua/pull/489" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/489/hovercard">#489</a></li>
<li><code>bAutoStartup</code> 配置选项没有生效</li>
<li>当 <code>UnLuaHotReload.lua</code> 不存在时会报错</li>
<li>通过C++类绑定的时候使用自动创建脚本功能会崩溃 <a href="https://github.com/Tencent/UnLua/issues/490" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/490/hovercard">#490</a></li>
<li>修复一些智能提示被过滤了的情况</li>
<li>监听嵌套界面里的组件的事件会导致组件无法被回收</li>
<li>覆写C++类型的函数后在蓝图编辑器里调用需要刷新节点才能编译过 <a href="https://github.com/Tencent/UnLua/issues/500" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/500/hovercard">#500</a></li>
<li>Lua持有结构体下的TArray字段,在结构体本身被GC后访问该数组会导致崩溃 <a href="https://github.com/Tencent/UnLua/issues/505" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/505/hovercard">#505</a></li>
<li><code>TCHAR_TO_XXX</code> 等宏应该只在行内传参使用 <a href="https://github.com/Tencent/UnLua/pull/508" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/508/hovercard">#508</a></li>
<li>退出游戏时候可能访问已经被释放的 <code>UUnLuaManager</code> 引起的崩溃 <a href="https://github.com/Tencent/UnLua/issues/504" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/504/hovercard">#504</a></li>
<li>UE5下在编辑器运行游戏的同时编译并保存动画蓝图会Crash <a href="https://github.com/Tencent/UnLua/issues/510" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/510/hovercard">#510</a></li>
</ul>
<h3>Changed</h3>
<ul>
<li>Lua模版文件中使用 <code>@type</code> 注解 <a href="https://github.com/Tencent/UnLua/issues/498" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/498/hovercard">#498</a></li>
<li>使用智能指针保存 <code>UEnum</code> 类型指针来区分有效性 <a href="https://github.com/Tencent/UnLua/pull/488" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/488/hovercard">#488</a></li>
<li>Lua源码作为外部第三方模块引入,默认使用C编译</li>
<li>Lua生成模版中统一使用 <code>UnLua.Class</code>,并增加类型注解</li>
<li>调整所有LuaLib的异常抛出形式为 <code>luaL_error</code> 而不是仅输出错误日志</li>
<li>切换场景时不再强制进行LuaGC</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.2.3
2022-07-15T11:43:40Z
2.2.3
<h3>Added</h3>
<ul>
<li>支持蓝图的<code>BlueprintFunctionLibrary</code>绑定到Lua与覆写</li>
<li>支持CDO绑定</li>
<li>支持自定义<a href="/Tencent/UnLua/blob/v2.2.3/Docs/CN/Settings.md#Lua%E6%A8%A1%E5%9D%97%E5%AE%9A%E4%BD%8D%E5%99%A8">Lua模块定位</a>设置</li>
<li>生成Lua模版文件时增加<code>@class</code>注解</li>
<li>UnLua内置API的智能提示</li>
<li>生成智能提示时显示更详细的进度条</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>打包DS服务端后,预先放在地图里的绑定过Lua的Actor会导致崩溃 <a href="https://github.com/Tencent/UnLua/issues/479" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/479/hovercard">#479</a></li>
<li>退出PIE时一些被覆写的Lua函数不会被执行 <a href="https://github.com/Tencent/UnLua/issues/472" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/472/hovercard">#472</a></li>
<li>切换场景时访问已释放对象上的属性时会引起崩溃 <a href="https://github.com/Tencent/UnLua/issues/482" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/482/hovercard">#482</a></li>
<li>同一个委托对象传递给不同函数来绑定和解绑,会出现无法解绑的问题 <a href="https://github.com/Tencent/UnLua/issues/471" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/471/hovercard">#471</a></li>
<li>Lua传递给蓝图的FName属性中文会乱码 <a href="https://github.com/Tencent/UnLua/pull/474" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/474/hovercard">#474</a></li>
<li>传递给Lua模块的<code>...</code>参数没有生效</li>
<li>退出PIE时父类被覆写的UFunction没有还原</li>
<li>UE4命名空间的兼容开关没生效</li>
<li>Editor下PIE判断不准确 <a href="https://github.com/Tencent/UnLua/pull/468" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/468/hovercard">#468</a></li>
<li>真机上UnLuaExtensions模块启动比UnLuaModule晚,导致luasocket没有加载 <a href="https://github.com/Tencent/UnLua/issues/484" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/484/hovercard">#484</a></li>
<li>调用静态导出函数的<code>TCHAR*</code>类型参数传递为空 <a href="https://github.com/Tencent/UnLua/pull/486" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/486/hovercard">#486</a></li>
</ul>
<h3>Changed</h3>
<ul>
<li>移除<code>UnLua.lua</code>,<code>UnLua</code>可作为全局对象访问,不需要<code>require "UnLua"</code>了</li>
</ul>
xuyanghuang-tencent
tag:github.com,2008:Repository/202060771/v2.2.2
2022-06-17T11:55:24Z
2.2.2
<h3>Added</h3>
<ul>
<li>优化绑定检测流程,避免在大量对象创建时导致性能降低 <a href="https://github.com/Tencent/UnLua/pull/457" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/457/hovercard">#457</a></li>
<li>通过菜单快速在文件管理器中打开绑定的Lua文件 <a href="https://github.com/Tencent/UnLua/pull/437" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/437/hovercard">#437</a></li>
<li>防止Lua代码无限循环超时设置 <a href="https://github.com/Tencent/UnLua/pull/428" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/428/hovercard">#428</a></li>
<li>支持添加多播代理绑定相同脚本不同对象实例函数 <a href="https://github.com/Tencent/UnLua/pull/439" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/439/hovercard">#439</a></li>
<li>更准确的内存分配统计</li>
<li><code>lua.gc</code> 控制台命令</li>
<li>UnLua 运行时/编辑器设置的子菜单</li>
<li>编辑器设置支持中文显示</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>命令行 <code>-server</code> 启动时 <code>UnLuaModule</code> 没有启动 <a href="https://github.com/Tencent/UnLua/issues/440" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/440/hovercard">#440</a></li>
<li><code>TArray</code> 和 <code>TMap</code> 进行 <code>pairs</code> 遍历时使用引用而不是复制 <a href="https://github.com/Tencent/UnLua/pull/442" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/442/hovercard">#442</a></li>
<li>实现了FTickableGameObject的对象在Tick里调用自身被Lua覆写的方法会崩溃 <a href="https://github.com/Tencent/UnLua/issues/440" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/440/hovercard">#446</a></li>
<li>返回 <code>TSubclassOf<></code> 到C++为空 <a href="https://github.com/Tencent/UnLua/issues/445" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/445/hovercard">#445</a></li>
<li>UE4.27下无法通过UE.XXX访问游戏项目模块中导出的原生类型 <a href="https://github.com/Tencent/UnLua/issues/448" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/448/hovercard">#448</a></li>
<li>从Lua按传递引用到蓝图的TArray引用变成了空Array <a href="https://github.com/Tencent/UnLua/issues/453" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/453/hovercard">#453</a></li>
<li>PIE过程中如果保存了覆写的蓝图,会导致蓝图资源损坏 <a href="https://github.com/Tencent/UnLua/issues/465" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/465/hovercard">#465</a></li>
<li>CDO绑定时需要过滤掉 <code>SKEL</code> 类型的对象 <a href="https://github.com/Tencent/UnLua/pull/460" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/460/hovercard">#460</a></li>
<li>分配在栈上的本地变量会引起 <code>CacheScriptContainer</code> 缓存错误导致崩溃 <a href="https://github.com/Tencent/UnLua/issues/455" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/455/hovercard">#455</a></li>
<li>热重载时报 <code>invalid TArray/TMap</code> 的错误</li>
<li>PIE过程中如果保存了覆写的蓝图,会导致蓝图资源损坏 <a href="https://github.com/Tencent/UnLua/issues/465" data-hovercard-type="issue" data-hovercard-url="/Tencent/UnLua/issues/465/hovercard">#465</a></li>
<li>Linux下带Editor编译报错 <a href="https://github.com/Tencent/UnLua/pull/467" data-hovercard-type="pull_request" data-hovercard-url="/Tencent/UnLua/pull/467/hovercard">#467</a></li>
</ul>
xuyanghuang-tencent