foreach (var assetBundleName in AssetDatabase.GetAllAssetBundleNames())
{
foreach (var assetPathAndName in AssetDatabase.GetAssetPathsFromAssetBundle(assetBundleName))
{
string nameWithoutPath = assetPathAndName.Substring(assetPathAndName.LastIndexOf("/") + 1);
string name = nameWithoutPath.Substring(0, nameWithoutPath.LastIndexOf("."));
Debug.Log(name);
}
}
