Version: 2018.1

AssetDatabase.GetAllAssetBundleNames

Switch to Manual
public static string[] GetAllAssetBundleNames ();

Returns

string[] Array of asset bundle names.

Description

Return all the AssetBundle names in the asset database.

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