mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 17:50:15 +00:00
如果依赖的是运行时以外的,不打入 share AssetBundle包
This commit is contained in:
@@ -185,10 +185,13 @@ namespace YooAsset.Editor
|
|||||||
|
|
||||||
if (_referenceBundleNames.Count > 1)
|
if (_referenceBundleNames.Count > 1)
|
||||||
{
|
{
|
||||||
IPackRule packRule = PackDirectory.StaticPackRule;
|
if (!AssetPath.Contains("/Editor/") && !AssetPath.Contains("/Gizmos/"))
|
||||||
var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath));
|
{
|
||||||
var shareBundleName = $"share_{bundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}";
|
IPackRule packRule = PackDirectory.StaticPackRule;
|
||||||
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
|
var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath));
|
||||||
|
var shareBundleName = $"share_{bundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}";
|
||||||
|
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user