From 4f0f0e54acd166d3306e66db291aed1f534f771e Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 1 Mar 2023 11:03:52 +0800 Subject: [PATCH] update asset bundle collector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化了资源收集界面,查看Collector主资源列表卡顿问题。 --- .../AssetBundleCollector/AssetBundleCollectorWindow.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs index a6a9bf1..bbad609 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorWindow.cs @@ -794,7 +794,7 @@ namespace YooAsset.Editor try { - CollectCommand command = new CollectCommand(EBuildMode.DryRunBuild, _packageNameTxt.value, _enableAddressableToogle.value, _uniqueBundleNameToogle.value); + CollectCommand command = new CollectCommand(EBuildMode.SimulateBuild, _packageNameTxt.value, _enableAddressableToogle.value, _uniqueBundleNameToogle.value); collectAssetInfos = collector.GetAllCollectAssets(command, group); } catch (System.Exception e) @@ -812,12 +812,7 @@ namespace YooAsset.Editor string showInfo = collectAssetInfo.AssetPath; if (_enableAddressableToogle.value) - { - IAddressRule instance = AssetBundleCollectorSettingData.GetAddressRuleInstance(collector.AddressRuleName); - AddressRuleData ruleData = new AddressRuleData(collectAssetInfo.AssetPath, collector.CollectPath, group.GroupName, collector.UserData); - string addressValue = instance.GetAssetAddress(ruleData); - showInfo = $"[{addressValue}] {showInfo}"; - } + showInfo = $"[{collectAssetInfo.Address}] {collectAssetInfo.AssetPath}"; var label = new Label(); label.text = showInfo;