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. Dismiss Notice

Addressables load from server and save to disk

Discussion in 'Addressables' started by DorukOzdemir95, Apr 7, 2021.

  1. DorukOzdemir95

    DorukOzdemir95

    Joined:
    Mar 11, 2021
    Posts:
    1
    Hi, I am working on a project for both IOS and Android, where user enters login ID and password and depending on which group that ID belongs to (lets say green group and red group that have green assets and red assets respectively) I want Addressables to download that group's assets from my web server (Azure container) and save them to disk (Persistent data path maybe?). And the next time the same user logs in with the same ID, I want to load the assets from that local path that I have saved my assets. I built my Addressables with remote load path pointing to my web server and I am using Addressables.DownloadDependenciesAsync to download assets but as I know that method does not save to disk, but to cache. So how can I save them to persistent datapath (or any other local path), and if I manage to save them, how should I tell the Addressables that if assets have been downloaded, load them from that local path? I am quite new with Addressables system, any help would be appreciated :). Sorry for bad english.
     
    anycolourulike likes this.
  2. unity_OSeBXw9aivkTJg

    unity_OSeBXw9aivkTJg

    Joined:
    Jul 8, 2019
    Posts:
    19
    I think the cache=disk if you enabled "Use Asset Bundle Cache" in addressable group settings.
     
    anycolourulike likes this.