From 9cd50bc7f35ff598dbf2429450ed1de2e9734afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Fri, 25 Jul 2025 15:43:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=89=A9=E5=B1=95=E7=B1=BB=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E5=B1=9E=E6=80=A7=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs index 04cf64be..776ee25a 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs @@ -77,6 +77,12 @@ namespace YooAsset.Editor foreach (var classType in viewerClassTypes) { var buildPipelineAttribute = EditorTools.GetAttribute(classType); + if (buildPipelineAttribute == null) + { + Debug.LogWarning($"The class {classType.FullName} need attribute {nameof(BuildPipelineAttribute)}"); + continue; + } + string pipelineName = buildPipelineAttribute.PipelineName; if (_viewClassDic.ContainsKey(pipelineName)) {