Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

AssetBundle Manager Doesn't fetch assetBundle on Andriod

$
0
0
I'm trying to implement AssetBundles using AssetBundleManager it's working fine on PC but, on Android it fails with following error>Failed downloading bundle Android from Android: java.net.MalformedURLException: Protocol not found: Android Here's code i'm using using System.Collections; using System.Collections.Generic; using UnityEngine; using AssetBundles; public class loadprefabs : MonoBehaviour { IEnumerator Start() { yield return StartCoroutine(initilize()); yield return StartCoroutine(loadObjs()); } IEnumerator initilize() { AssetBundleManager.SetSourceAssetBundleURL("http://www..com/cloud/"); var request = AssetBundleManager.Initialize(); if (request != null) yield return StartCoroutine(request); } IEnumerator loadObjs() { AssetBundleLoadAssetOperation req = AssetBundleManager.LoadAssetAsync("prefabs", "Cube", typeof(GameObject)); if (req == null) yield break; yield return StartCoroutine(req); GameObject prefab = req.GetAsset(); if (prefab != null) GameObject.Instantiate(prefab); }

Viewing all articles
Browse latest Browse all 312

Trending Articles



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