Search Unity

How to get address from AssetReference in runtime?

Discussion in 'Addressables' started by Deleted User, Jul 29, 2019.

  1. Deleted User

    Deleted User

    Guest

    Title. I want to get the address from a serialized AssetReference. How can I do this?
     
  2. MoctezumaDev

    MoctezumaDev

    Joined:
    Aug 14, 2013
    Posts:
    53
    Do you mean the path?

    Mmm I only found a way in editor mode, but why do you need such thing at runtime?

    AssetDatabase.GetAssetPath(bundler.reference.editorAsset);
     
    Deleted User likes this.
  3. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    unity_bill and Deleted User like this.