string[] 资源包名称数组。
返回资产数据库中的所有资源包名称。
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); } }