From 559ed95999e518c07d5f454044171d53c7de4d59 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 17 Aug 2023 21:53:51 +0800 Subject: [PATCH] update asset bundle collector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加在配置错误的时候警示提示。 --- .../AssetBundleCollectorWindow.cs | 18 ++++++++++++++++++ .../AssetBundleCollectorWindow.uxml | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs index b07c152..1b4b1af 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs @@ -26,6 +26,7 @@ namespace YooAsset.Editor private List _filterRuleList; private Button _settingsButton; + private VisualElement _helpBoxContainer; private VisualElement _setting1Container; private VisualElement _setting2Container; private Toggle _showPackageToogle; @@ -34,6 +35,7 @@ namespace YooAsset.Editor private Toggle _includeAssetGUIDToogle; private Toggle _uniqueBundleNameToogle; private Toggle _showEditorAliasToggle; + private HelpBox _helpBox; private VisualElement _packageContainer; private ListView _packageListView; @@ -124,6 +126,11 @@ namespace YooAsset.Editor RefreshWindow(); }); + // 警示栏 + _helpBox = new HelpBox("无法同时开启[Enable Addressable]选项和[Location To Lower]选项", HelpBoxMessageType.Error); + _helpBoxContainer = root.Q("HelpBoxContainer"); + _helpBoxContainer.Add(_helpBox); + // 配置修复按钮 var fixBtn = root.Q