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);
}
↧