From 8fd39db9ce8637c0816cc502ab7ba96a6b5b4eba Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 16 Mar 2022 11:03:23 +0800 Subject: [PATCH] Update AssetBundleDebugger --- .../AssetBundleDebuggerWindow.cs | 8 ++++---- .../VisualViewers/AssetListDebuggerViewer.cs | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs index 71e962b..6dc360d 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/AssetBundleDebuggerWindow.cs @@ -16,7 +16,7 @@ namespace YooAsset.Editor } private AssetListDebuggerViewer _assetListViewer; - private readonly DebugSummy _summy = new DebugSummy(); + private readonly DebugReport _debugReport = new DebugReport(); private string _searchKeyWord; @@ -52,13 +52,13 @@ namespace YooAsset.Editor } private void SampleBtn_onClick() { - YooAssets.GetDebugSummy(_summy); - _assetListViewer.FillViewData(_summy, _searchKeyWord); + YooAssets.GetDebugReport(_debugReport); + _assetListViewer.FillViewData(_debugReport, _searchKeyWord); } private void OnSearchKeyWordChange(ChangeEvent e) { _searchKeyWord = e.newValue; - _assetListViewer.FillViewData(_summy, _searchKeyWord); + _assetListViewer.FillViewData(_debugReport, _searchKeyWord); } } } \ No newline at end of file diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs index 5e955d5..daab272 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs @@ -16,7 +16,7 @@ namespace YooAsset.Editor private ListView _assetListView; private ListView _dependListView; - private DebugSummy _summy; + private DebugReport _debugReport; /// /// 初始化页面 @@ -54,16 +54,16 @@ namespace YooAsset.Editor /// /// 填充页面数据 /// - public void FillViewData(DebugSummy summy, string searchKeyWord) + public void FillViewData(DebugReport debugReport, string searchKeyWord) { - _summy = summy; + _debugReport = debugReport; _assetListView.Clear(); - _assetListView.itemsSource = FilterViewItems(summy, searchKeyWord); + _assetListView.itemsSource = FilterViewItems(debugReport, searchKeyWord); } - private List FilterViewItems(DebugSummy summy, string searchKeyWord) + private List FilterViewItems(DebugReport debugReport, string searchKeyWord) { - var result = new List(summy.ProviderInfos.Count); - foreach (var providerInfo in summy.ProviderInfos) + var result = new List(debugReport.ProviderInfos.Count); + foreach (var providerInfo in debugReport.ProviderInfos) { if(string.IsNullOrEmpty(searchKeyWord) == false) {