string[] Array of asset bundle names.
Return all the AssetBundle names in the asset database.
#pragma strict public class GetAssetBundleNames { @MenuItem("Assets/Get Asset Bundle names") static function GetNames() { var names: var = AssetDatabase.GetAllAssetBundleNames(); for (var name: String in names) Debug.Log("Asset Bundle: " + name); } }
using UnityEditor; using UnityEngine;
public class GetAssetBundleNames { [MenuItem ("Assets/Get Asset Bundle names")] static void GetNames () { var names = AssetDatabase.GetAllAssetBundleNames(); foreach (string name in names) Debug.Log ("Asset Bundle: " + name); } }