Hi guys.
I’ve updated my project to 5.2 and now my project isn’t downloading my assetbundles on iOS anymore (though it works in the editor fine).
I’m downloading the assetbundles with the following code:
var aLocalAssetWWW = new WWW(StreamingAssetPath + anAssetName);
//Wait for the WWW to be initialized
Debug.Log("loading from disk");
yield return aLocalAssetWWW;
//yield return StartCoroutine(new WWWRequest(aLocalAssetWWW));
Debug.Log("local loading done?");
while (!aLocalAssetWWW.isDone && string.IsNullOrEmpty(aLocalAssetWWW.error))
{
Debug.Log("local loading done? no");
Debug.Log("has an error: " + aLocalAssetWWW.error + " url: " + aLocalAssetWWW.url);
yield return aLocalAssetWWW;
//yield return StartCoroutine(new WWWRequest(aLocalAssetWWW));
}
Debug.Log("caching ready? " + Caching.ready);
while (!Caching.ready)
yield return null;
I’ve found out that the yield return aLocalAssetWWW is hanging and don’t get any further on iOS. For that I found a workaround here in the forum. Sadly the next problem occurs with the Caching.ready which is always returning false now.
This code works fine on 5.1.2 (not working on 5.1.3 anymore), I’ve tested that there now, so something has changed there that this code is not working. Has someone else this problem?
Any help is appreciated!