Quantcast
Channel: Questions in topic: "assetbundle.loadasync"
Viewing all articles
Browse latest Browse all 39

Assetbundle fail to load at IOS local

$
0
0
Hi I'm encounter with some assetbundle problem on IOS device I can download my assetbundle file from internet and save it at some local path but when I try to load it, it just crash and the App will shut down automatically. That's something will not happen in Android This also won't happen when I preview in Unity( works fine on Mac and PC). here's my ccode : IEnumerator DownloadBundle() { while (!Caching.ready) yield return null; www = WWW.LoadFromCacheOrDownload(downloadPath, 1); yield return www; isDownloading = false; AssetBundle bundle = www.assetBundle; AssetBundleRequest request = bundle.LoadAssetAsync("Car", typeof(GameObject)); yield return request; GameObject obj = request.asset as GameObject; bundle.Unload(false); www.Dispose(); Instantiate(obj, transform.position, transform.rotation); } Is there anything that I do wrong?

Viewing all articles
Browse latest Browse all 39

Trending Articles



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