From 9404882fc7df5e9ca69b79f6741304ab00cf2732 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 22 Oct 2022 17:47:06 +0800 Subject: [PATCH] Update AssetBundleDebugger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调试窗口增加资源对象的加载耗时统计和显示 --- .../VisualViewers/DebuggerAssetListViewer.cs | 26 ++++++++++++++----- .../DebuggerAssetListViewer.uxml | 5 ++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs index fedaa46..aa0b8a1 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs @@ -163,7 +163,7 @@ namespace YooAsset.Editor label.style.unityTextAlign = TextAnchor.MiddleLeft; label.style.marginLeft = 3f; //label.style.flexGrow = 1f; - label.style.width = 100; + label.style.width = 150; element.Add(label); } @@ -173,6 +173,16 @@ namespace YooAsset.Editor label.style.unityTextAlign = TextAnchor.MiddleLeft; label.style.marginLeft = 3f; //label.style.flexGrow = 1f; + label.style.width = 100; + element.Add(label); + } + + { + var label = new Label(); + label.name = "Label6"; + label.style.unityTextAlign = TextAnchor.MiddleLeft; + label.style.marginLeft = 3f; + //label.style.flexGrow = 1f; label.style.width = 120; element.Add(label); } @@ -200,9 +210,13 @@ namespace YooAsset.Editor var label3 = element.Q