Update AssetBundleBuilder

对内置管线构建结果做容错处理
pull/40/head
hevinci 2022-09-14 17:36:41 +08:00
parent 4975d3b1ba
commit af29cb738d
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ namespace YooAsset.Editor
if (buildResults == null)
throw new Exception("构建过程中发生错误!");
if (buildMode == EBuildMode.ForceRebuild || buildMode == EBuildMode.IncrementalBuild)
{
string unityOutputManifestFilePath = $"{buildParametersContext.PipelineOutputDirectory}/{YooAssetSettings.OutputFolderName}";
if(System.IO.File.Exists(unityOutputManifestFilePath) == false)
throw new Exception("构建过程中发生严重错误!请查阅上下文日志!");
}
BuildRunner.Log("Unity引擎打包成功");
BuildResultContext buildResultContext = new BuildResultContext();
buildResultContext.UnityManifest = buildResults;