当前位置:网站首页>huato hot update environment construction (DLL method hot update C# code)
huato hot update environment construction (DLL method hot update C# code)
2022-07-30 16:35:00 【term】
Official introductory documentation reference:
https://focus-creative-games.github.io/hybridclr/start_up/#安装和环境搭建
1.First download the two packages 一个解释器 一个修改Unity IL2CPP 的代码包 (注意Unity 版本要求为2020.3.33 The author is also expanding on subsequent editions)
解释器下载:
https://github.com/focus-creative-games/hybridclr
2020.3.33 IL2CPP Library modification download:
https://github.com/focus-creative-games/il2cpp_plus/tree/2020.3.33
Download the official example project:
https://github.com/focus-creative-games/hybridclr_trial.git
The corresponding download is completed as shown in the figure below

2 拷贝 hybridclr/huatuo 目录 到 il2cpp_plus/libi2cpp 目录下


3. 复制第2步修改的libil2cpp 文件夹 替换掉Unity 2020.3.33 编辑器的libil2cpp文件夹(It is recommended to back up before replacing)

找到对应Unity 安装目录 打开

搞定 The environment is set up You can open the example project to see it
4 哦豁 报错 小问题 Look at him saying that there are fewer documents Open the directory he said to have a look

4.1 修改init_local_il2cpp_data.bat 文件 改成对应Unity 安装目录 双击运行 他会生成一个LocalIl2CppData 文件

Note that the circled places have to be changed The last two addresses Corresponding to the above fromgitdownload path

make a copy of this Add an overlay without prompting

双击 bat提示成功就可以了

可以看到 生成了一个 LocalIl2CppData 目录就可以了
5 重新打开工程 Let him load it up 就不会报错了 打开示例main场景

6 First compile a package to test (方便测试 I'll make one up firstPC包把)
6.1如果提示 IL2CPP not installed 表示安装Unity was missed when ticking 没下载Window下的IL2CPP 打包环境

打开Unity Hub 点击安装 Select the corresponding version 右键 添加模块

6.2直接点Build 选个目录 I will create a new one hereBuild 目录 Put it in here

然后等 他loading 完 看看到 有个exe 编译完成
6.3 打开 All mouse clicks can open the console You can see this print log output
6.4 现在对这个C# Make a simple modification and see

7.先编DLL

7.1 再把DLL 变成ab 包

7.2 刚刚的DLL compiled intocommon 里面 直接手动拷贝 覆盖进去(Simulate update download)

7.3 直接替换掉Build 目录下的StreamingAssets同名文件

7.4 再打开exe 看看效果
There is a print out 完美
边栏推荐
- Wuhan Star Sets Sail: Overseas warehouse infrastructure has become a major tool for cross-border e-commerce companies to go overseas
- 登录模块调试-软件调试入门
- 大厂面试官眼中的好简历到底长啥样
- Overview of TiDB Tool Functions
- 配置Path环境变量
- 【SOC】经典输出hello world
- The service already exists!解决办法
- Public Key Retrieval is not allowed error solution
- 函数调用方式_stdcall 、 _cdecl 、_thiscall
- FME's scheme and operation process for reading and writing cass data
猜你喜欢

Horizontal Pod Autoscaler(HPA)

登录模块调试-软件调试入门

Goland 开启文件保存自动进行格式化

【SOC FPGA】外设KEY点LED

C#西门子S7 协议通过偏移量的方式读写PLC DB块

23. Please talk about the difference between IO synchronization, asynchronous, blocking and non-blocking

rhce笔记2

Huawei ADS reports an error when obtaining conversion tracking parameters: getInstallReferrer IOException: getInstallReferrer not found installreferrer

第一次用debug查询,发现这个为空,是不是代表还没获得数据库的意思?求帮助。

SMI 与 Gateway API 的 GAMMA 倡议意味着什么?
随机推荐
Minio 入门
如何在分面中添加数学表达式标签?
[AGC] Quality Service 2 - Performance Management Example
23. 请你谈谈关于IO同步、异步、阻塞、非阻塞的区别
Public Key Retrieval is not allowed报错解决方案
论文阅读 (63):Get To The Point: Summarization with Pointer-Generator Networks
The service already exists!解决办法
你是一流的输家,你因此成为一流的赢家
[HMS core] [FAQ] A collection of typical questions about push kit, analysis services, and video editing services 3
C语言学习之旅 【函数(二)】
Huawei ADS reports an error when obtaining conversion tracking parameters: getInstallReferrer IOException: getInstallReferrer not found installreferrer
Invalid or corrupt jarfile xxx.jar
Qt 动态库与静态库
Store Limit usage documentation
Load Base Split usage documentation
如何注册域名、备案以及解析
绕开驱动层检测的无痕注入
在 Chrome 浏览器中安装 JSON 显示插件
SMI 与 Gateway API 的 GAMMA 倡议意味着什么?
Pytorch 训练技巧