Update AssetBundleBuilder

This commit is contained in:
hevinci
2022-08-03 15:43:54 +08:00
parent 3e716887c9
commit 5b8a004720
9 changed files with 131 additions and 58 deletions
@@ -173,14 +173,11 @@ namespace YooAsset.Editor
if (IsRawAsset)
throw new Exception("Should never get here !");
if (AssetBundleCollectorSettingData.Setting.AutoCollectShaders)
if (IsShaderAsset)
{
if (IsShaderAsset)
{
string shareBundleName = $"{AssetBundleCollectorSettingData.Setting.ShadersBundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}";
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
return;
}
string shareBundleName = YooAssetSettingsData.GetUnityShadersBundleFullName();
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
return;
}
if (_referenceBundleNames.Count > 1)