tuyoogame / YooAsset

unity3d resources management system
https://www.yooasset.com/
Apache License 2.0
2.41k stars 469 forks source link

2.1.1版本HybirdCLR5.1 ,在线更新没问题,但是吧文件放到streamingassets里面就会提示打开dll的bundle错误,希望host play模式可以把首包打包 #280

Open aran1177 opened 5 months ago

aran1177 commented 5 months ago

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()

gmhevinci commented 5 months ago

你是否有加密处理?

aran1177 commented 5 months ago

无加密。host play如何读取首包。使用官方的示例里面的 fmsnode代码做的,发现他不更新,直接去下载了。yoo工具打包加密为none,clearandcopyall放到了streamingassets里面了。

aran1177 commented 5 months ago

还有项目里面的资源assets/HotUpdateAssets在打包的时候是不是已经被打进去了?那再放streamingassets是不是就有两份资源了?

gmhevinci commented 5 months ago

host play mode 会优先加载缓存里的资源,如果内置资产里也没有,就去远端下载。

gmhevinci commented 5 months ago

还有项目里面的资源assets/HotUpdateAssets在打包的时候是不是已经被打进去了?那再放streamingassets是不是就有两份资源了?

这个要看你的个人收集器的配置了。

gmhevinci commented 5 months ago

至于你遇到的这个问题,你可以在下断点或者打一些关键日志,来确认一下加载路径的文件确定存在。