Unity Client stop responding when calling LoadFromCacheOrDownload() repeatedly

i’m a cache addon owner and my Caching.Authorize() returns true.

the problem i’m having is if i keep calling WWW.LoadFromCacheOrDownload() function, the unity client might hang occasionally.

this is how i use the LoadFromCacheOrDownload function.

foreach(KeyValuePair<string, int> kvp in AssetBundleList){
	count++;
	string url = kvp.Key;
	int version = kvp.Value;
	loader = WWW.LoadFromCacheOrDownload(url, version);
	yield return loader;
        loader.Dispose();
}

anyone spotted any problem with the code or having similar problem as me?

hi

I don’t use the direct WWW.LoadFromCacheOrDownload ().
If I want to suspend download, then save the assetbundle locally, and then run the LoadFromCacheOrDownload to it.

thank you

I’m sorry, this article has been created in the google translation.