TheInitialProject/Assets/CaoCao/.~XAsset说明/分包逻辑.txt
2024-10-23 16:59:02 +08:00

12 lines
1000 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1 打包时按常规流程正常打包
2初始化流程时按流程在第3步时加入分包检测逻辑 -- RuntimeInitializeHandler
0所有勾选了subpackage的Build全部不复制到persistentDataPath文件夹
但将streamingAssetsPath的分包json加入到Assets的dicSubPackageVersion管理中
3初始化流程时按流程在第4步时将新版本的version替换到Assets.Versions后将非streamingAssetsPath的分包json加入到dicSubPackageVersion中。
4在ProcedureCheckGameVersion时将最新版version的json下载到临时目录 -- VersionRequest
比对Build.json文件中判断是否已下载完该分包下载完成才加入热更该分包json文件以下载新的json文件
5ProcedureDownload 下载热更json时 -- GetDownloadSizeRequestOnStart()中:
1判断是否已下载完该分包下载完成才热更分包所有文件。
6点击资源下载界面向SubpackageMgrComponent请求分包下载