update AssetBundleBuilder

Unity2021版本及以上推荐使用可编程构建管线(SBP)
main
hevinci 2023-05-26 18:05:39 +08:00
parent 0764061d8f
commit ad680638ac
1 changed files with 7 additions and 0 deletions

View File

@ -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("当前正在构建资源包,请结束后再试");