From 3fedc5b1b33b8205c0405e7bf51f9d66065b7011 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 21 Nov 2022 19:07:34 +0800 Subject: [PATCH] Update AssetBundleCollector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原生文件打包规则包含文件后缀名 --- .../YooAsset/Editor/AssetBundleCollector/DefaultPackRule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/DefaultPackRule.cs b/Assets/YooAsset/Editor/AssetBundleCollector/DefaultPackRule.cs index c8e42c7..a3cf18a 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/DefaultPackRule.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/DefaultPackRule.cs @@ -120,8 +120,8 @@ namespace YooAsset.Editor if (depends.Length != 1) throw new Exception($"{nameof(PackRawFile)} is not support estension : {extension}"); - string bundleName = StringUtility.RemoveExtension(data.AssetPath); - return EditorTools.GetRegularPath(bundleName).Replace('/', '_'); + string bundleName = data.AssetPath; + return EditorTools.GetRegularPath(bundleName).Replace('/', '_').Replace('.', '_'); } }