From 4a44d87c27d5de49179d7646fdca5c4189b1d4c6 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Thu, 27 May 2021 13:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B5=8B=E8=AF=95=E3=80=91=E6=89=93?= =?UTF-8?q?=E5=8C=85=E9=80=9F=E5=BA=A6=E6=B5=8B=E8=AF=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssetBundle/Core/AssetBundleBuilder.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Assets/Scripts/Editor/GameEditor/AssetBundle/Core/AssetBundleBuilder.cs b/Assets/Scripts/Editor/GameEditor/AssetBundle/Core/AssetBundleBuilder.cs index a5455ebbfb..cbe6c65c49 100644 --- a/Assets/Scripts/Editor/GameEditor/AssetBundle/Core/AssetBundleBuilder.cs +++ b/Assets/Scripts/Editor/GameEditor/AssetBundle/Core/AssetBundleBuilder.cs @@ -8,6 +8,7 @@ using UnityEngine; using UnityEditor; using Object = UnityEngine.Object; using GameEditor.Core; +using GameLogic; namespace GameEditor.AssetBundle { @@ -118,6 +119,25 @@ namespace GameEditor.AssetBundle Debug.LogError("清理完毕..."); } + [MenuItem("AssetBundle/TestClearMark")] + public static void TestClearMark() + { + System.Diagnostics.Stopwatch time = new System.Diagnostics.Stopwatch(); + time.Start(); + AssetDatabase.RemoveAssetBundleName("lz4/updatepanel.unity3d", true); + time.Stop(); + Debug.Log(" 耗时:" + time.ElapsedMilliseconds); + } + + [MenuItem("AssetBundle/TestMark")] + public static void TestMark() + { + System.Diagnostics.Stopwatch time = new System.Diagnostics.Stopwatch(); + time.Start(); + AssetBundleBuilder.MarkOneFloderOneBundle("ManagedResources/UpdatePanel", CompressType.LZ4); + time.Stop(); + Debug.Log(" 耗时:" + time.ElapsedMilliseconds); + } /// /// 开始打包 ///