Quantcast
Channel: Questions in topic: "assetbundle"
Viewing all articles
Browse latest Browse all 1593

How to get all asset name in bundles?

$
0
0
Good day sir, i'm trying to get all object name on my bundles called "2Cubes.unity3d" How i can see all object name on Debug.Log? I just want make sure the assetName is true inside 2Cubes.unity3d. Thank you using System; using UnityEngine; using System.Collections; public class Main : MonoBehaviour { public string BundleURL; public string assetName; // Use this for initialization IEnumerator Start () { using (WWW www = new WWW(BundleURL)) { yield return www; if (www.error != null) throw new Exception("WWW download had an error:" + www.error); AssetBundle bundle = www.assetBundle; if (assetName == "") Instantiate(bundle.mainAsset); else Instantiate(bundle.LoadAsset(assetName)); // Unload the AssetBundles compressed contents to conserve memory bundle.Unload(false); } } // Update is called once per frame }

Viewing all articles
Browse latest Browse all 1593

Trending Articles



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