From ad680638acecedc80d11b4997126c0a2401e2823 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 26 May 2023 18:05:39 +0800 Subject: [PATCH] update AssetBundleBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unity2021版本及以上推荐使用可编程构建管线(SBP) --- .../Editor/AssetBundleBuilder/BuildTasks/TaskPrepare.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskPrepare.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskPrepare.cs index 738149a..5a824d5 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskPrepare.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskPrepare.cs @@ -24,6 +24,13 @@ namespace YooAsset.Editor if (buildParameters.BuildMode != EBuildMode.SimulateBuild) { +#if UNITY_2021_3_OR_NEWER + if (buildParameters.BuildPipeline == EBuildPipeline.BuiltinBuildPipeline) + { + BuildLogger.Warning("推荐使用可编程构建管线(SBP)!"); + } +#endif + // 检测当前是否正在构建资源包 if (BuildPipeline.isBuildingPlayer) throw new Exception("当前正在构建资源包,请结束后再试");