Merge pull request #15 from JourneyHans/main

编辑器模式下打包执行成功后自动显示Bundle文件夹
pull/17/head
何冠峰 2022-06-23 16:08:11 +08:00 committed by GitHub
commit 00ffd55fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}");
}
}
// 加密类相关