From 5df26908fb26f8ae0ea62c469aa6134fe8e4e888 Mon Sep 17 00:00:00 2001 From: axn777 <1955407822@qq.com> Date: Fri, 8 Jul 2022 01:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E4=BE=9D=E8=B5=96=E7=9A=84?= =?UTF-8?q?=E6=98=AF=E8=BF=90=E8=A1=8C=E6=97=B6=E4=BB=A5=E5=A4=96=E7=9A=84?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E6=89=93=E5=85=A5=20share=20AssetBundle?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/AssetBundleBuilder/BuildAssetInfo.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs index 913ac92..d9c90e3 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs @@ -185,10 +185,13 @@ namespace YooAsset.Editor if (_referenceBundleNames.Count > 1) { - IPackRule packRule = PackDirectory.StaticPackRule; - var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath)); - var shareBundleName = $"share_{bundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}"; - _shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower(); + if (!AssetPath.Contains("/Editor/") && !AssetPath.Contains("/Gizmos/")) + { + IPackRule packRule = PackDirectory.StaticPackRule; + var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath)); + var shareBundleName = $"share_{bundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}"; + _shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower(); + } } } else