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)