From 2321b1556bcf48e77f8c2aa41b477d278a05ca3b Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 25 Sep 2023 12:18:55 +0800 Subject: [PATCH] fix #163 --- .../Editor/AssetBundleBuilder/BuildTasks/ExtdBuildTasks.cs | 2 ++ .../Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/ExtdBuildTasks.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/ExtdBuildTasks.cs index 282662c..c50cce5 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/ExtdBuildTasks.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/ExtdBuildTasks.cs @@ -22,6 +22,7 @@ namespace UnityEditor.Build.Pipeline.Tasks /// public ReturnCode Run() { +#if UNITY_2020_3_OR_NEWER BundleWriteData writeData = (BundleWriteData)writeDataParam; // 所有图集散图的 guid 集合 @@ -63,6 +64,7 @@ namespace UnityEditor.Build.Pipeline.Tasks } } } +#endif return ReturnCode.Success; } diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs index 7648054..f538dff 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs @@ -333,6 +333,7 @@ namespace YooAsset.Editor _showEditorAliasToggle.SetValueWithoutNotify(AssetBundleCollectorSettingData.Setting.ShowEditorAlias); // 警示框 +#if UNITY_2020_3_OR_NEWER _helpBoxContainer.Clear(); if (_enableAddressableToogle.value && _locationToLowerToogle.value) { @@ -348,6 +349,7 @@ namespace YooAsset.Editor _helpBoxContainer.style.display = DisplayStyle.Flex; else _helpBoxContainer.style.display = DisplayStyle.None; +#endif // 设置栏 if (_showSettings)