首页 > 技术文章 > Unity之热更新:(四)HotFix热补丁

tomatokely 2021-12-14 10:46 原文

1. 安装步骤

1)宏定义:添加HOTFIX_ENABLE到 Edit->Project Settings->Player->Other Settings->Scripting Define Symbols

 

 2)把之前下载好的xLua-maset文件夹里的Tools文件夹拷贝到项目文件夹(和Assets平级)

 

 

3)生成代码  执行XLua->Generate Code,等待编译完成

 

4)注入 执行XLua->HotFix Inject In Editor。成功会输出 inject finish 或 had injected。

 

推荐阅读