Search Unity

Database and Addressables

Discussion in 'Addressables' started by Daegit, Apr 25, 2020.

  1. Daegit

    Daegit

    Joined:
    Nov 20, 2015
    Posts:
    32
    Hi,

    Im currently trying to set up a database for items and i want to use addressables in combination with this.

    My Item in a database looks like this
    Code (CSharp):
    1. Item:
    2. Id : 123
    3. Name: bla
    4. Description: bla
    5. Icon : name
    Now I'd like to create those items at runtime when they needed.
    Which works quite well but im facing a problem.

    At the moment im using asset bundles, so i can just load the asset bundle at load the sprite.

    My thought was if the sprite knows to which asset bundle it belongs to ,i can just store it like
    Code (CSharp):
    1. Item:
    2. Id : 123
    3. Name: bla
    4. Description: bla
    5. Icon : assetBundleName_spriteName
    When i create new items i need to know from which asset bundle the sprite is and i haven't found a way to do this.

    Is this possible with Addressable asset ?
     
  2. Noor23

    Noor23

    Joined:
    Feb 19, 2022
    Posts:
    28
    yes its possible i think with addressables as you wont need to know the location of the sprites
     
  3. Noor23

    Noor23

    Joined:
    Feb 19, 2022
    Posts:
    28