From e3fa33b9b5d4d7ea967e7184fa3e66e3ccf7a34a Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 7 Dec 2022 11:25:41 +0800 Subject: [PATCH] update editor logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除BundleName_HashName选项。 --- .../AssetBundleBuilder/BuildTasks/TaskUpdateBuildInfo.cs | 2 +- .../Editor/AssetBundleBuilder/EOutputNameStyle.cs | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBuildInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBuildInfo.cs index 6499fb5..c45a6db 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBuildInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskUpdateBuildInfo.cs @@ -48,7 +48,7 @@ namespace YooAsset.Editor // 4.更新补丁包输出的文件路径 foreach (var bundleInfo in buildMapContext.BundleInfos) { - string patchFileName = PatchManifest.CreateBundleFileName(outputNameStyle, bundleInfo.BundleName, bundleInfo.PatchInfo.PatchFileHash); + string patchFileName = PatchManifest.CreateBundleFileName(outputNameStyle, bundleInfo.BundleName, bundleInfo.PatchInfo.PatchFileHash, bundleInfo.IsRawFile); bundleInfo.PatchInfo.PatchOutputFilePath = $"{packageOutputDirectory}/{patchFileName}"; } } diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/EOutputNameStyle.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/EOutputNameStyle.cs index a601530..6cde3ff 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/EOutputNameStyle.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/EOutputNameStyle.cs @@ -17,13 +17,8 @@ namespace YooAsset.Editor HashName_Extension = 2, /// - /// bundle_name_000000000000000f000000000000000 + /// 000000000000000f000000000000000_bundle_name.bundle /// - BundleName_HashName = 3, - - /// - /// bundle_name_000000000000000f000000000000000.bundle - /// - BundleName_HashName_Extension = 4, + HashName_BundleName_Extension = 4, } } \ No newline at end of file