diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs index 18ddfcc..bcc7dee 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs @@ -12,29 +12,29 @@ namespace YooAsset.Editor { internal class ReporterBundleListViewer { - private enum ESortMode + protected enum ESortMode { BundleName, BundleSize, BundleTags } - private VisualTreeAsset _visualAsset; - private TemplateContainer _root; + protected VisualTreeAsset _visualAsset; + protected TemplateContainer _root; - private ToolbarButton _topBar1; - private ToolbarButton _topBar2; - private ToolbarButton _topBar3; - private ToolbarButton _topBar5; - private ToolbarButton _bottomBar1; - private ListView _bundleListView; - private ListView _includeListView; + protected ToolbarButton _topBar1; + protected ToolbarButton _topBar2; + protected ToolbarButton _topBar3; + protected ToolbarButton _topBar5; + protected ToolbarButton _bottomBar1; + protected ListView _bundleListView; + protected ListView _includeListView; - private BuildReport _buildReport; - private string _reportFilePath; - private string _searchKeyWord; - private ESortMode _sortMode = ESortMode.BundleName; - private bool _descendingSort = false; + protected BuildReport _buildReport; + protected string _reportFilePath; + protected string _searchKeyWord; + protected ESortMode _sortMode = ESortMode.BundleName; + protected bool _descendingSort = false; /// /// 初始化页面 @@ -349,10 +349,24 @@ namespace YooAsset.Editor private void FillIncludeListView(ReportBundleInfo bundleInfo) { List containsList = new List(); + Dictionary tempAssetDict = new Dictionary(); foreach (var assetInfo in _buildReport.AssetInfos) { if (assetInfo.MainBundleName == bundleInfo.BundleName) + { + tempAssetDict.Add(assetInfo.AssetPath, 1); containsList.Add(assetInfo); + } + } + foreach (string includeInAsset in bundleInfo.AllBuiltinAssets) + { + if (!tempAssetDict.ContainsKey(includeInAsset)) + { + var assetInfo = new ReportAssetInfo(); + assetInfo.AssetPath = includeInAsset; + assetInfo.AssetGUID = "--"; + containsList.Add(assetInfo); + } } _includeListView.Clear(); @@ -376,6 +390,16 @@ namespace YooAsset.Editor element.Add(label); } + { + var label = new Label(); + label.name = "Label3"; + label.style.unityTextAlign = TextAnchor.MiddleLeft; + label.style.marginLeft = 3f; + //label.style.flexGrow = 1f; + label.style.width = 200; + element.Add(label); + } + { var label = new Label(); label.name = "Label2"; @@ -397,6 +421,10 @@ namespace YooAsset.Editor var label1 = element.Q