Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Assetbundles not loading on ios device. Any help would be appreciated.

$
0
0
My app loads the assetbundles perfectly on the editor, webGL and android, but it's not loading on iOS. Any idea on how can I make this work? Thanks IEnumerator AssetLoad(string bundURL, string bundleName) { using (var wwwB = WWW.LoadFromCacheOrDownload(bundURL, 1)) { yield return wwwB; UnityWebRequest request = UnityWebRequest.GetAssetBundle(bundURL); if (!string.IsNullOrEmpty(wwwB.error)) { Debug.Log(wwwB.error); yield return null; } isDownload = true; StartCoroutine(progress(request)); isDownload = false; Debug.Log("Bundle downloaded"); var myLoadedAssetBundle = wwwB.assetBundle; var asset = myLoadedAssetBundle.mainAsset; SceneManager.LoadScene(bundleName); }

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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