Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question [Resolved] Add new Addressable Assets on the fly

Discussion in 'Addressables' started by Dliix66, Sep 22, 2022.

  1. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Hello everyone,

    I'm sorry if this has already be answered, but I did not find any answer yet.

    My game already uses Addressable Assets, some are hosted on a server, some are local and everything works fine.

    However, if I want to add a new asset (let's say a 3D model for instance), I have to add it in the project, rebuild and publish a new version after uploading the online assets and updating the catalog.

    My question is, how can I add new Addressable Assets without needing to make a new game build ? I've used AssetBundles in the past, that's working fine to add new Assets on the fly, however, I'd like the new assets to be Addressables so all the game is using the Addressable API to manage assets.

    Is that doable? If yes, would you mind explaining the actions or share a link?

    Thanks a lot!
     
  2. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    804
    Grant_SI likes this.
  3. pillakirsten

    pillakirsten

    Unity Technologies

    Joined:
    May 22, 2019
    Posts:
    346
  4. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Thanks for your answer, I'll have a look at it, but if I understood well, if I add new remote assets, I won't know about it just with the catalog update? I thought updating the catalog would also allow me to access the list of assets it contains ?
     
  5. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
  6. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    804
    Yes, you can get the locations when you load it.

    What I meant is that if you want to load a specific new asset you will need to know about it (either already coded or from selecting it from the pulled locations list). Loading a catalog will not automatically load thew new assets.
     
    Dliix66 likes this.
  7. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Sorry for the late reply, I've managed to do it using either the location pulled from my server or loading all assets with a tag.

    Thanks for your help !

    Resolved