如果依赖的是运行时以外的,不打入 share AssetBundle包

pull/21/head
axn777 2022-07-08 01:35:45 +08:00
parent fb5e289de0
commit 5df26908fb
1 changed files with 7 additions and 4 deletions

View File

@ -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