概要
using System.Linq; using UnityEditor; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var builds = AssetDatabase .GetAllAssetBundleNames() .Select ( x => new AssetBundleBuild { assetBundleName = x, assetNames = AssetDatabase.GetAssetPathsFromAssetBundle( x ) } ) .ToArray() ; } }