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

How to properly update assets from remote server in the launch scene?

Discussion in 'Addressables' started by lettablet, Jan 11, 2020.

  1. lettablet

    lettablet

    Joined:
    Jan 11, 2020
    Posts:
    2
    Hi friends,

    I have read and watched everyting I found about addressables but there is still something not clear for me.
    My target is to check the bundle version hosted in the server and download the bundle if a new version exists.

    Problem 1) How can I check the server version? I have played with Addressables.CheckForCatalogUpdates() and it always return 0. No matter Addressable group is static(Cannot change post release) or not. And also I didn't understand when and why should I set a group static.

    Problem 2) Let's say I am in the Launch scene(the first scene in my game) and I did check and know that there is a bundle with new version on the server. I want to download the new bundle before moving to another scene to make everything ready. Is there a method for downloading a bundle? What I have seem so far is that you try to load an asset, if not cached, related bundle is downloaded from server. So basically, I want to download everthing new on the server beforehand.

    Thanks!
     
  2. u_ladon

    u_ladon

    Joined:
    Aug 6, 2019
    Posts:
    6
    static group allow you use Tools -> Check for content update restriction.
    this tool make new group with changed resources to new bundle.

    Addressables.CheckForCatalogUpdates();
    Addressables.UpdateCatalogs();
    before go to another scene - its check hash file on server and download new content then its needed.