From 65bfd3d8927accf85e3c1b81fed60ac1ee782636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Tue, 20 Jan 2026 19:20:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor=20:=20=E9=87=8D=E6=9E=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VisualViewers/DebuggerAssetListViewer.cs | 6 +- .../VisualViewers/DebuggerBundleListViewer.cs | 6 +- .../DebuggerOperationListViewer.cs | 36 +- .../Runtime/DiagnosticSystem/README.md | 478 +++++++ .../README.md.meta | 2 +- .../YooAsset/Runtime/DownloadSystem/README.md | 25 +- .../AssetBundleLoadAllAssetsOperation.cs | 4 +- .../AssetBundleLoadAssetOperation.cs | 4 +- .../AssetBundleLoadSceneOperation.cs | 4 +- .../AssetBundleLoadSubAssetsOperation.cs | 4 +- .../VirtualBundleLoadSceneOperation.cs | 4 +- .../Operation/BFSLoadBundleOperation.cs | 8 +- .../LoadBuiltinPackageManifestOperation.cs | 2 +- .../Operation/CFSLoadBundleOperation.cs | 12 +- .../DownloadPackageBundleOperation.cs | 4 +- .../LoadCachePackageManifestOperation.cs | 2 +- .../DownloadAndCacheFileOperation.cs | 2 +- .../DownloadAndCacheLocalFileOperation.cs | 4 +- .../DownloadAndCacheRemoteFileOperation.cs | 2 +- .../Scheduler/DownloadSchedulerOperation.cs | 2 +- .../Operation/EFSLoadBundleOperation.cs | 6 +- .../DownloadVirutalBundleOperation.cs | 2 +- .../LoadEditorPackageManifestOperation.cs | 2 +- .../LoadWebPackageManifestOperation.cs | 2 +- .../LoadWebServerPackageManifestOperation.cs | 2 +- .../OperationSystem/AsyncOperationBase.cs | 158 +- .../OperationSystem/EOperationStatus.cs | 25 +- .../OperationSystem/OperationScheduler.cs | 33 +- .../OperationSystem/OperationSystem.cs | 38 +- .../Runtime/OperationSystem/README.md | 555 ------- .../Runtime/OperationSystem/README.md.meta | 7 - .../Operation/InstantiateOperation.cs | 6 +- .../Operation/Internal/LoadBundleOperation.cs | 6 +- .../Operation/UnloadSceneOperation.cs | 2 +- .../Operation/UnloadUnusedAssetsOperation.cs | 2 +- .../Provider/AllAssetsProvider.cs | 2 +- .../ResourceManager/Provider/AssetProvider.cs | 2 +- .../Provider/ProviderOperation.cs | 4 +- .../ResourceManager/Provider/SceneProvider.cs | 2 +- .../Provider/SubAssetsProvider.cs | 2 +- .../Runtime/ResourceManager/README.md | 1269 ----------------- .../Runtime/ResourceManager/README.md.meta | 7 - .../ResourceManager/ResourceManager.cs | 4 +- .../Operation/ClearCacheOperation.cs | 2 +- .../Operation/DestroyPackageOperation.cs | 4 +- .../Operation/InitializePackageOperation.cs | 2 +- .../Operation/LoadManifestOperation.cs | 2 +- .../Runtime/ResourcePackage/README.md | 1063 -------------- .../Runtime/TestLoadAsset/TestLoadAsset.cs | 2 +- 49 files changed, 734 insertions(+), 3090 deletions(-) create mode 100644 Assets/YooAsset/Runtime/DiagnosticSystem/README.md rename Assets/YooAsset/Runtime/{ResourcePackage => DiagnosticSystem}/README.md.meta (75%) delete mode 100644 Assets/YooAsset/Runtime/OperationSystem/README.md delete mode 100644 Assets/YooAsset/Runtime/OperationSystem/README.md.meta delete mode 100644 Assets/YooAsset/Runtime/ResourceManager/README.md delete mode 100644 Assets/YooAsset/Runtime/ResourceManager/README.md.meta delete mode 100644 Assets/YooAsset/Runtime/ResourcePackage/README.md diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs index 3339ccff..30e4b8f9 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerAssetListViewer.cs @@ -125,13 +125,13 @@ namespace YooAsset.Editor _providerTableView.AddColumn(column); } - // BeginTime + // StartTime { var columnStyle = new ColumnStyle(100); columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = true; - var column = new TableColumn("BeginTime", "Begin Time", columnStyle); + var column = new TableColumn("StartTime", "Start Time", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -314,7 +314,7 @@ namespace YooAsset.Editor rowData.AddAssetPathCell("PackageName", packageData.PackageName); rowData.AddStringValueCell("AssetPath", providerInfo.AssetPath); rowData.AddStringValueCell("SpawnScene", providerInfo.OriginScene); - rowData.AddStringValueCell("BeginTime", providerInfo.StartTime); + rowData.AddStringValueCell("StartTime", providerInfo.StartTime); rowData.AddLongValueCell("LoadingTime", providerInfo.ElapsedMS); rowData.AddLongValueCell("RefCount", providerInfo.ReferenceCount); rowData.AddStringValueCell("Status", providerInfo.Status.ToString()); diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs index b377e8c2..fc018306 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerBundleListViewer.cs @@ -208,13 +208,13 @@ namespace YooAsset.Editor _usingTableView.AddColumn(column); } - // BeginTime + // StartTime { var columnStyle = new ColumnStyle(100); columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = true; - var column = new TableColumn("BeginTime", "Begin Time", columnStyle); + var column = new TableColumn("StartTime", "Start Time", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -451,7 +451,7 @@ namespace YooAsset.Editor rowData.ProviderInfo = providerInfo; rowData.AddStringValueCell("UsingAssets", providerInfo.AssetPath); rowData.AddStringValueCell("SpawnScene", providerInfo.OriginScene); - rowData.AddStringValueCell("BeginTime", providerInfo.StartTime); + rowData.AddStringValueCell("StartTime", providerInfo.StartTime); rowData.AddLongValueCell("RefCount", providerInfo.ReferenceCount); rowData.AddStringValueCell("Status", providerInfo.Status); sourceDatas.Add(rowData); diff --git a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerOperationListViewer.cs b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerOperationListViewer.cs index 7119519e..68095f54 100644 --- a/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerOperationListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleDebugger/VisualViewers/DebuggerOperationListViewer.cs @@ -147,13 +147,13 @@ namespace YooAsset.Editor _operationTableView.AddColumn(column); } - // BeginTime + // StartTime { var columnStyle = new ColumnStyle(100); columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = true; - var column = new TableColumn("BeginTime", "Begin Time", columnStyle); + var column = new TableColumn("StartTime", "Start Time", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -168,14 +168,14 @@ namespace YooAsset.Editor _operationTableView.AddColumn(column); } - // ProcessTime + // ElapsedMS { var columnStyle = new ColumnStyle(130); columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = true; columnStyle.Units = "ms"; - var column = new TableColumn("ProcessTime", "Process Time", columnStyle); + var column = new TableColumn("ElapsedMS", "Elapsed MS", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -259,19 +259,19 @@ namespace YooAsset.Editor _bottomToolbar.Add(button); } - // BeginTime + // StartTime { ToolbarButton button = new ToolbarButton(); - button.text = "BeginTime"; + button.text = "StartTime"; button.style.flexGrow = 0; button.style.width = 100; _bottomToolbar.Add(button); } - // ProcessTime + // ElapsedMS { ToolbarButton button = new ToolbarButton(); - button.text = "ProcessTime (ms)"; + button.text = "ElapsedMS"; button.style.flexGrow = 0; button.style.width = 130; _bottomToolbar.Add(button); @@ -319,8 +319,8 @@ namespace YooAsset.Editor rowData.AddStringValueCell("OperationName", operationInfo.OperationName); rowData.AddLongValueCell("Priority", operationInfo.Priority); rowData.AddDoubleValueCell("Progress", operationInfo.Progress); - rowData.AddStringValueCell("BeginTime", operationInfo.StartTime); - rowData.AddLongValueCell("LoadingTime", operationInfo.ElapsedMS); + rowData.AddStringValueCell("StartTime", operationInfo.StartTime); + rowData.AddLongValueCell("ElapsedMS", operationInfo.ElapsedMS); rowData.AddStringValueCell("Status", operationInfo.Status.ToString()); rowData.AddStringValueCell("Desc", operationInfo.OperationDesc); _sourceDatas.Add(rowData); @@ -408,20 +408,20 @@ namespace YooAsset.Editor container.Add(label); } - // BeginTime + // StartTime { var label = new Label(); - label.name = "BeginTime"; + label.name = "StartTime"; label.style.flexGrow = 0f; label.style.width = 100; label.style.unityTextAlign = TextAnchor.MiddleLeft; container.Add(label); } - // ProcessTime + // ElapsedMS { var label = new Label(); - label.name = "ProcessTime"; + label.name = "ElapsedMS"; label.style.flexGrow = 0f; label.style.width = 130; label.style.unityTextAlign = TextAnchor.MiddleLeft; @@ -464,15 +464,15 @@ namespace YooAsset.Editor label.text = operationInfo.Progress.ToString(); } - // BeginTime + // StartTime { - var label = container.Q