Update AssetBundleBuilder

修复在可编程构建管线下模拟构建模式报错。
pull/40/head
hevinci 2022-09-21 11:20:32 +08:00
parent 02b9b689b7
commit 3a7f3bb68d
1 changed files with 5 additions and 2 deletions

View File

@ -37,8 +37,11 @@ namespace YooAsset.Editor
// 更新Unity内置资源包的引用关系
if (buildParameters.Parameters.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline)
{
var buildResultContext = context.GetContextObject<TaskBuilding_SBP.BuildResultContext>();
UpdateBuiltInBundleReference(patchManifest, buildResultContext.Results);
if(buildParameters.Parameters.BuildMode == EBuildMode.IncrementalBuild)
{
var buildResultContext = context.GetContextObject<TaskBuilding_SBP.BuildResultContext>();
UpdateBuiltInBundleReference(patchManifest, buildResultContext.Results);
}
}
// 创建补丁清单文件