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?
↧