编辑器模式下打包执行成功后自动显示Bundle文件夹

pull/15/head
huanghanzhi 2022-06-22 15:50:56 +08:00
parent 3cbf891674
commit 93607ad62a
1 changed files with 6 additions and 1 deletions

View File

@ -182,7 +182,12 @@ namespace YooAsset.Editor
buildParameters.CompressOption = (ECompressOption)_compressionField.value;
AssetBundleBuilder builder = new AssetBundleBuilder();
builder.Run(buildParameters);
bool succeed = builder.Run(buildParameters);
if (succeed)
{
EditorUtility.RevealInFinder($"{buildParameters.OutputRoot}/{buildParameters.BuildTarget}/{buildParameters.BuildVersion}");
}
}
// 加密类相关