// 在编辑器上手动设置
//UnityEditor.AssetDatabase.GetAllAssetBundleNames()
//string[] path = UnityEditor.AssetDatabase.GetAllAssetBundleNames();
//string[] path = UnityEditor.AssetDatabase.GetAssetPathsFromAssetBundle("111");
string[] path = UnityEditor.AssetDatabase.GetAssetPathsFromAssetBundleAndAssetName("111", "307005");
Debug.Log(path.Length);
foreach (string str in path)
{
Debug.Log(str);
}
以上的UnityEditor.AssetDatabase.GetAllAssetBundleNames, UnityEditor.AssetDatabase.GetAssetPathsFromAssetBundle,UnityEditor.AssetDatabase.GetAssetPathsFromAssetBundleAndAssetName
这几个函数,主要是针对Editor下的手动设置过的assetbundle name的bundle。