Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

How to save and load a copy of the AssetBundleManifest file

$
0
0
Hi guys, Using Unity's Asset Bundle System, I am trying to achieve the following behaviour: 1. When app opens, if wifi connection is present, download the manifest file from cloud. 2. If no wifi available, load an older version of the manifest from cache. However, from Unity's asset bundle demo, the manifest file is always downloaded from the cloud via this code: WWW download = new WWW (url); whilst non-manifest files are downloaded using: WWW download = WWW.LoadFromCacheOrDownload (url, m_AssetBundleManifest.GetAssetBundleHash (assetBundleName), 0)); I tried a couple of things such as using LoadFromCacheOrDownload() when new WWW() has failed (wifi not present) but I'm not sure what hash to use for the manifest file. I can also see this comment: "For manifest assetbundle, always download it as we don't have hash for it." but still my heart wishes to achieve the behaviour mentioned. Any help or insight is greatly appreciated. :)

Viewing all articles
Browse latest Browse all 312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>