Search Unity

Get AssetReference or GUID from string address or label

Discussion in 'Addressables' started by Jobus, Nov 30, 2018.

  1. Jobus

    Jobus

    Joined:
    Jun 7, 2013
    Posts:
    7
    If you only have an address or label, is there a way to get a list of matching AssetReferences?

    Something like LoadAssets<IResourceLocation>(), except for AssetReferences (tried it, throws UnknownResourceProviderException).
     
    myloran likes this.
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    no. An AssetReference just keeps up with an object's GUID. There is no mapping that could get you from address back to asset ref.