Unity之热更新:(四)HotFix热补丁

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。

 

posted @ 2021-12-14 10:46  番茄玛丽  阅读(449)  评论(0编辑  收藏  举报