Version: 5.6

AssetDatabase.GetAllAssetBundleNames

Cambiar al Manual
public static string[] GetAllAssetBundleNames ();

Valor de retorno

string[] Array of asset bundle names.

Descripción

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