Search Unity

How to download a whole bundle instead of a single asset?

Discussion in 'Addressables' started by Dolzen, Sep 16, 2019.

  1. Dolzen

    Dolzen

    Joined:
    Mar 26, 2014
    Posts:
    90
    Hi guys!
    I'm trying to download a whole bundle from a remote server using Addressables.DownloadDependenciesAsync() but whenever I try to enter a key I get an invalid key exception so my question is which key should I use to download the whole bundle in advance from the remote server. I can download a single asset and it works fine but I wanna download the whole bundle in advance because the bundle name, in my case 'firstdownload' doesn't work, it throws an invalid key exception so I'm a little bit confused.

    Any help would be appreciated, thanks!
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    For now, mark all assets in a group with a label, then download that label.
     
  3. Dolzen

    Dolzen

    Joined:
    Mar 26, 2014
    Posts:
    90
    Thanks! I just realized that. What if I have 200 assets, I have to mark each asset one bye one? is there a way to mark a whole group of Addressables?

    Thanks!
     
  4. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
  5. Dolzen

    Dolzen

    Joined:
    Mar 26, 2014
    Posts:
    90
    That worked for me, thanks!