From b7e2f084b15a93fbcbe9b6b6dbbb04d04b19e25e Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 26 Nov 2022 15:31:46 +0800 Subject: [PATCH] Update editor code --- .../VisualViewers/DebuggerAssetListViewer.cs | 2 +- .../VisualViewers/DebuggerBundleListViewer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs index aa0b8a1..389f9bb 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs @@ -220,7 +220,7 @@ namespace YooAsset.Editor // Status StyleColor textColor; - if (providerInfo.Status == (int)ProviderBase.EStatus.Fail) + if (providerInfo.Status == ProviderBase.EStatus.Failed.ToString()) textColor = new StyleColor(Color.yellow); else textColor = label1.style.color; diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs index dbac2ce..cb68f3a 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs @@ -185,7 +185,7 @@ namespace YooAsset.Editor // Status StyleColor textColor; - if (bundleInfo.Status == (int)BundleLoaderBase.EStatus.Failed) + if (bundleInfo.Status == BundleLoaderBase.EStatus.Failed.ToString()) textColor = new StyleColor(Color.yellow); else textColor = label1.style.color;