addressable entry contains two more same word leads error

// AddressableAssetSettingsLocator.cs
string GetInternalIdFromFolderEntry(string keyStr, AddressableAssetEntry entry)
{
var entryPath = entry.AssetPath;
var a = keyStr.Replace(entry.address, entryPath);
var b = "Config/DebugConfigData.asset".Replace("Config", "Assets/AddressablesResources/Config");
// log true
Debug.Log(b == "Assets/AddressablesResources/Config/DebugAssets/AddressablesResources/ConfigData.asset");

environment:
Unity2020.2.0f1, Addressables1.16.10

My asset “DebugConfigData.asset” is contained in directory “Config”, and I make directory “Config” addressable, so the full address of asset “DebugConfigData.asset” is “Config/DebugConfigData.asset”.

keyStr = “Config/DebugConfigData.asset”
entry.address = “Config”
entryPath = “Assets/AddressablesResources/Config”
so the result of keyStr.Replace(entry.address, entryPath) is “Assets/AddressablesResources/Config/DebugAssets/AddressablesResources/ConfigData.asset”.
Incredible! It’s impossible to make key right!

Thanks for flagging. If you haven’t yet, could you file a bug report for us?

sorry, I didn’t know where to report a bug and I can’t just ask for help in forum, I need to create a clean project to make it, and thank you for reply! I was just a little upset for no reply these days.:frowning:

No worries! Sorry for my late response too!

looks like this bug has been fixed in Addressables 1.17.2-preview:)

1 Like