Search Unity

Question How to get list of bundles ?

Discussion in 'Addressables' started by AbgaryanFX, Nov 27, 2020.

  1. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    I want to make a system which
    1. Will get the list of asset bundles available in remote addressables (to create a menu with that list).
    2. When I update the bundles (add a bundle to list) I want to be able to get the list of bundles with newly added one without updating application.
    How should a setup addressables to get this kind of result ?
     
    Last edited: Nov 28, 2020
    Jamolbek likes this.
  2. Jamolbek

    Jamolbek

    Joined:
    Sep 29, 2017
    Posts:
    3
    Any updates on this?
     
  3. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
  4. Jamolbek

    Jamolbek

    Joined:
    Sep 29, 2017
    Posts:
    3
    That's unfortunate. I was looking for that too. I will try another way then.
     
  5. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,534
    You can scrub the catalog.json file for all
    .bundle
    addresses. Definitely not ideal.
     
  6. AbgaryanFX

    AbgaryanFX

    Joined:
    Jan 9, 2010
    Posts:
    167
    Here is my the way I use`
    1. I made a prefab with category list (2nd pic)
    2. I assigned labels` "categoryName" for models for that category and "categoryName"+"Menu" for menu items data (3rd pic)
    3. First, I'm loading the category prefab with label "category", then query it for cat-y names, after that I take the category name and filter addr-s for models and menuData, which contains category items' data.

    upload_2021-1-29_22-19-14.png

    upload_2021-1-29_22-14-9.png upload_2021-1-29_22-14-31.png