Update AssetBundleDebugger

pull/4/head
hevinci 2022-03-23 23:07:55 +08:00
parent 62b46c4180
commit 4a3000b9c8
1 changed files with 12 additions and 3 deletions

View File

@ -135,17 +135,26 @@ namespace YooAsset.Editor
var sourceData = _assetListView.itemsSource as List<DebugProviderInfo>; var sourceData = _assetListView.itemsSource as List<DebugProviderInfo>;
var providerInfo = sourceData[index]; 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 // Asset Path
var label1 = element.Q<Label>("Label1"); var label1 = element.Q<Label>("Label1");
label1.text = providerInfo.AssetPath; label1.text = providerInfo.AssetPath;
label1.style.color = textColor;
// Ref Count // Ref Count
var label2 = element.Q<Label>("Label2"); var label2 = element.Q<Label>("Label2");
label2.text = providerInfo.RefCount.ToString(); label2.text = providerInfo.RefCount.ToString();
label2.style.color = textColor;
// Status // Status
var label3 = element.Q<Label>("Label3"); var label3 = element.Q<Label>("Label3");
label3.text = providerInfo.Status.ToString(); label3.text = providerInfo.Status.ToString();
label3.style.color = textColor;
} }
private void AssetListView_onSelectionChange(IEnumerable<object> objs) private void AssetListView_onSelectionChange(IEnumerable<object> objs)
{ {