一、前言 unity热更有很多方案,各种lua热更,ILRuntime等,这里介绍的是YooAsset+HybridCLR的热更方案,HybridCLR负责更新c#代码,YooAsset负责更新资源。 简单来说,流程就是将c#代码打成dll,然后把dll当做一个资源,用YooAsset热更dll资源之后,动态加载dll程序集,然后执行新逻辑 HybridCLR相比其他代码热更方案而言,纯c#方便开发,更加符合开发者习惯,更新的代码执行效率也更好。 YooAsset热更资源,主要是省去了自己亲自管理ab包,ab包的管理挺繁琐,AssetBundle坑也很多,而且YooAsset有下载器,不用自己手写网络下载,也不用自己记录资源,比对资源列表来判定需要热更什么资源。 这里将从零开始,用一个空工程,展示YooAsset+HybridCLR热更的使用过程。 二、创建空工程 这里使用的版本是unity2022.3.17.f1c1 三、接入HybridCLR unity必须添加了Windows Build Support(IL2CPP)或Mac Build Support(IL2CPP)模块...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Using
Contact Using, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack