mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-29 20:48:47 +00:00
Update AssetBundleDebugger
This commit is contained in:
@@ -65,7 +65,7 @@ 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;
|
||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user