is it bug that wrong address of Addressable asset from prefab?
I use recent addressable version. I try find address from prefab by below function.
public string GetAddressFromPrefab(Object prefab)
{
var path = AssetDatabase.GetAssetPath(prefab);
var guid = AssetDatabase.AssetPathToGUID(path);
var assetEntry = UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.Settings.FindAssetEntry(guid, true);
return assetEntry.address;
}
this result of GetAddressFromPrefab() for house_01.prefab is "world_theme_0001object/house_01.prefab".
Is this result wrong ? I expect "world_theme_0001/object/house_01.prefab". "/" is missed.
please check it.
Answer by lleo52 · Mar 17 at 08:54 AM
Is "assetEntry = settings.CreateSubEntryIfUnique(subAssetGuid, address + relativePath, this);" wrong ?
It must be "assetEntry = settings.CreateSubEntryIfUnique(subAssetGuid, address + "/" + relativePath, this);" ?
Your answer
Follow this Question
Related Questions
Unity www class connect to https ip; Unknown Error. 0 Answers
Having issues with remote ADDRESSABLES. 0 Answers
Change hierarchy | remove any assets in remote addressable 0 Answers
How to remove old and unnecessary addressables assetpacks from the device 1 Answer
Change hierarchy | remove any assets in remote addressable 0 Answers