mirror of https://github.com/tuyoogame/YooAsset
Update AssetBundleDebugger
parent
62b46c4180
commit
4a3000b9c8
|
@ -65,10 +65,10 @@ namespace YooAsset.Editor
|
||||||
var result = new List<DebugProviderInfo>(debugReport.ProviderInfos.Count);
|
var result = new List<DebugProviderInfo>(debugReport.ProviderInfos.Count);
|
||||||
foreach (var providerInfo in debugReport.ProviderInfos)
|
foreach (var providerInfo in debugReport.ProviderInfos)
|
||||||
{
|
{
|
||||||
if(string.IsNullOrEmpty(searchKeyWord) == false)
|
if (string.IsNullOrEmpty(searchKeyWord) == false)
|
||||||
{
|
{
|
||||||
if (providerInfo.AssetPath.Contains(searchKeyWord) == false)
|
if (providerInfo.AssetPath.Contains(searchKeyWord) == false)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
result.Add(providerInfo);
|
result.Add(providerInfo);
|
||||||
}
|
}
|
||||||
|
@ -134,18 +134,27 @@ 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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue