From 4a3000b9c840d178efecbbbd15c14650b721762f Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 23 Mar 2022 23:07:55 +0800 Subject: [PATCH] Update AssetBundleDebugger --- .../VisualViewers/AssetListDebuggerViewer.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs index daab272..c21c43b 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs @@ -65,10 +65,10 @@ namespace YooAsset.Editor var result = new List(debugReport.ProviderInfos.Count); foreach (var providerInfo in debugReport.ProviderInfos) { - if(string.IsNullOrEmpty(searchKeyWord) == false) + if (string.IsNullOrEmpty(searchKeyWord) == false) { if (providerInfo.AssetPath.Contains(searchKeyWord) == false) - continue; + continue; } result.Add(providerInfo); } @@ -134,18 +134,27 @@ namespace YooAsset.Editor { var sourceData = _assetListView.itemsSource as List; var providerInfo = sourceData[index]; - + + StyleColor textColor; + if (providerInfo.Status == ProviderBase.EStatus.Fail) + textColor = new StyleColor(Color.yellow); + else + textColor = new StyleColor(StyleKeyword.Initial); + // Asset Path var label1 = element.Q