From e6422445a6b3403ef8944a60b019f5f16feeeb05 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 22 Apr 2022 16:22:09 +0800 Subject: [PATCH] Added debugging information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增调试信息,出生场景和出生时间。 --- .../VisualViewers/AssetListDebuggerViewer.cs | 40 +++++++++++--- .../AssetListDebuggerViewer.uxml | 6 ++- .../VisualViewers/BundleListDebuggerViewer.cs | 52 ++++++++++++++----- .../BundleListDebuggerViewer.uxml | 6 ++- .../Runtime/AssetSystem/AssetSystem.cs | 14 ++++- .../AssetSystem/Provider/ProviderBase.cs | 31 ++++++++++- .../Runtime/Debugger/DebugProviderInfo.cs | 10 ++++ 7 files changed, 134 insertions(+), 25 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs index 86fbd83..1a6dbc5 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/AssetListDebuggerViewer.cs @@ -114,7 +114,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); } @@ -124,6 +124,26 @@ namespace YooAsset.Editor label.style.unityTextAlign = TextAnchor.MiddleLeft; label.style.marginLeft = 3f; //label.style.flexGrow = 1f; + label.style.width = 150; + element.Add(label); + } + + { + var label = new Label(); + label.name = "Label4"; + 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 = "Label5"; + label.style.unityTextAlign = TextAnchor.MiddleLeft; + label.style.marginLeft = 3f; + //label.style.flexGrow = 1f; label.style.width = 120; element.Add(label); } @@ -139,9 +159,17 @@ namespace YooAsset.Editor var label1 = element.Q