premiss: bundles are built always in different folders
workaround: in BundledAssetGroupSchema.cs:
//**addressables - bundles without hash in name support
[SerializeField]
private bool m_RenameUsingHash;
public bool RenameUsingHash
{
get => m_RenameUsingHash;
set
{
m_RenameUsingHash = value;
SetDirty(true);
}
}
in BuildScriptPackedMode.cs PostProcessBundles(…):
if (schema.RenameUsingHash) //**addressables - bundles without hash in name support
{
dataEntry.InternalId = dataEntry.InternalId.Replace(".bundle", "_" + info.Hash + ".bundle");
newBundleName = newBundleName.Replace(".bundle", "_" + info.Hash + ".bundle");
}