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
}