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

WWW.LoadFromCacheOrDownload(string url, Hash128 hash) strange behaviour

$
0
0
Hi! I have problem with method WWW.LoadFromCacheOrDownload(string url, Hash128 hash). For example this code: Hash128 hash = Hash128.Parse("any_string"); Debug.Log(Caching.IsVersionCached(localURL, hash)); //False WWW www = WWW.LoadFromCacheOrDownload(localURL, hash); yield return www; Debug.Log(www.error); //Null Debug.Log(Caching.IsVersionCached(localURL, hash)); //True has strange behaviour. As you can see I wrote wrong Hash128 for the existing bundle. Before downloading this bundle the method Caching.IsVersionCached(localURL, hash) returns False (that is OK). But after downloading (right bundle with wrong hash) this method returns True and no errors in www.error. Could you help me please?

Viewing all articles
Browse latest Browse all 312

Trending Articles



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