//[MenuItem("Yu/AssetBundle/打包当前应用的AssetBundle &b")] public static void BuildAllAssetBundle() { var currentApp = ProjectInfoDati.GetActualInstance(); var assetBundleOutPutDir = currentApp.AssetBundleBuildDir; IOUtility.EnsureDirExist(assetBundleOutPutDir); BuildPipeline.BuildAssetBundles(assetBundleOutPutDir, BuildAssetBundleOptions.ChunkBasedCompression, EditorUserBuildSettings.activeBuildTarget); UnityEditorUtility.DisplayTooptx($"应用{currentApp.DevelopProjectName}的AssertBundle打包已完成!"); AssetDatabase.Refresh(); }