ResourceLocation.PrimaryKey returns incorrect value on Editor

Hi Team @karl_jones

I recently discovered that on Unity editor, if you marked a folder as addressable assets

for e.g “Assest/Prefabs/Characters”

and you are trying to load an resource location of a prefab under the folder

for e.g “Assets/Prefabs/Characters/E01.prefab”

the primary key property of the resource location is pointing to the address of the asset bundle the prefab belongs to (which is the folder) instead of the address of the prefab. to me it feels wrong because the primary key is supposed to pointing to the address that can be used to load the prefab.

Luckly the primary key is pointing to the correct address in my android build (which is the addressable address that can be used to load the prefab)

thanks for taking time to read this post.

my dev environment: Unity 2021.3.29f1 (Android Platform), Addressable 1.19.19, Window 11.

Regards,
Bale007

Hi,
This is not something I have had much experience with, I’m not on the Addressable team :wink:
Could you please file a bug report so they can be made aware? Unity QA: Building quality with passion

Hi Jones, thanks for the reply

I see i will try tag someone that is with the addressable team and will file a bug if it has been confirmed by a team memeber :slight_smile:

@davidla_unity can you help taking a look at the disucssion above ?

Regards,
Bale007

nobdy ?

Did you file a bug report? They will be able to confirm if it’s a bug through the bug report.

okay thank for you the reply, i filed a bug report already

it’d be helpful for that information to be posted to this thread so that the whole community benefits. I’m sure it would provide valuable insight for any user looking to master the Addressables system.