Я пытаюсь загрузить сцену, но я получаю сообщение об ошибке из заголовка, и я просто не знаю, почему, потому что я вызываю Unload (false) в AssetBundle. Кто-нибудь может мне помочь? Благодарю.Не удается загрузить кешированный AssetBundle. Одноименный файл уже загружен из другого AssetBundle
void Start() {
...
StartCoroutine (DownloadAndCache());
...
}
IEnumerator DownloadAndCache(){
// Wait for the Caching system to be ready
while (!Caching.ready)
yield return null;
// Load the AssetBundle file from Cache if it exists with the same version or download and store it in the cache
using(WWW www = WWW.LoadFromCacheOrDownload (BundleURL, version)){
yield return www;
if (www.error != null)
throw new Exception("WWW download had an error:" + www.error);
AssetBundle bundle = www.assetBundle;
bundle.LoadAll();
AsyncOperation async = Application.LoadLevelAsync("main");
Debug.Log (async.progress);
yield return async;
bundle.Unload(false);
}
}
В какой строке все же происходит ошибка? Является ли уровень 'main' содержащимся в комплекте? – Kay
Я «решил» (НЕ) проблему. В Unity 4.1.2 загрузка сцены из AssetBundle падает, когда я останавливаю игру. Подробнее здесь http://answers.unity3d.com/questions/382154/problem-in-loading-scene-from-asset-bundle.html#comment-469348 и здесь http://answers.unity3d.com/questions/ 373556/как-может-я-стоп-мой-редактор из-сбою-каждый-i.html – ahsoka