/GameFramework_HybridCLR

使用GameFramework/HybridCLR UPM插件的 案例工程

Primary LanguageC++

GameFramework_HybridCLR

使用GameFramework/HybridCLR UPM插件的 案例工程

HybridCLR

实例 https://github.com/focus-creative-games/hybridclr_unity.git

huatuo GitHub https://github.com/focus-creative-games

huatuo 工程示例 https://github.com/focus-creative-games/hybridclr_trial

哔哔哩安装教程 https://www.bilibili.com/video/BV1LZ4y1b7CR?share_source=copy_web

GameFramework

框架仓库 https://github.com/EllanJiang/GameFramework.git

Star Force 仓库 https://github.com/EllanJiang/StarForce.git

本项目 Star Force 是一个使用 Game Framework 接入Huatuo热更新实现范例,供使用者参考。

GF接入HybridCLR流程

1.PackageManager导入插件 https://github.com/HeNuoLibrary/hybridclr_unity.git

插件导入.png

2.自定义HybridCLR全局设置

全局设置.png

3.加载热更脚本Assembly-CSharp.dll

加载热更脚本.png

4.在HotFixDll文件夹中创建AOT列表

微信截图_20221013104515.png

微信截图_20221013104539.png

5.加载AOT ,为aot assembly加载原始metadata

教程案例中的加载方式(案例中aot.dll直接放在bundle包中 获取便可知道有多少)

加载AOT.png

GF加载AOT方式(需要用这个列表直接加载所有的AOT)

GF加载AOT的方式.png

6.创建CompileHotfixDll 快捷键

CompileHotfixDll.png

热更新模块拆分 配置 HybridCLR

微信截图_20221013112418.png

将AOT部分拆分为一个或多个程序集,Assembly-CSharp作为热更新程序集,同时还有其他0-N个热更新程序集。

微信截图_20221013113814.png

运行流程

c121211df7f165c2c0a4a0fba39c4bf78420db5be4edae060040f8588a4f4704.png

热更逻辑.png

Build打包

安装和打包

微信截图_20221013115458.png

微信截图_20221013114258.png