Open aran1177 opened 5 months ago
你是否有加密处理?
无加密。host play如何读取首包。使用官方的示例里面的 fmsnode代码做的,发现他不更新,直接去下载了。yoo工具打包加密为none,clearandcopyall放到了streamingassets里面了。
还有项目里面的资源assets/HotUpdateAssets在打包的时候是不是已经被打进去了?那再放streamingassets是不是就有两份资源了?
host play mode 会优先加载缓存里的资源,如果内置资产里也没有,就去远端下载。
还有项目里面的资源assets/HotUpdateAssets在打包的时候是不是已经被打进去了?那再放streamingassets是不是就有两份资源了?
这个要看你的个人收集器的配置了。
至于你遇到的这个问题,你可以在下断点或者打一些关键日志,来确认一下加载路径的文件确定存在。
Unable to open archive file: jar:file:///data/app/------/base.apk!/assets/HotUpdateAssets/DefaultPackage/b987fc4919e57446a549016d324bd286.bundle 2024-04-13 11:59:35.192 6125-6318 Unity E Failed to read data for the AssetBundle 'b987fc4919e57446a549016d324bd286.bundle'. 2024-04-13 11:59:35.199 6125-6318 Unity E Failed to load assetBundle : defaultpackage_assets_hotupdateassets_assembliespostil2cppstrip.bundle UnityEngine.Logger:Log(LogType, Object) YooAsset.AssetBundleFileLoader:Update() YooAsset.ResourceManager:Update() YooAsset.ResourcePackage:UpdatePackage()