Search Unity

Resolved How do unity know the catalog file name?

Discussion in 'Addressables' started by Nickromancer, Mar 30, 2022.

  1. Nickromancer

    Nickromancer

    Joined:
    Jul 31, 2016
    Posts:
    92
    How do unity know the catalog file name? The CheckForCatalogUpdates() doesn't accept any URL.
    Everytime I do a build it create hash and json file with different file name because of the time stamp part.

    Example:
    catalog_2022.03.30.14.55.39.hash
    catalog_2022.03.30.14.55.39.json

    Is the filename stored some where everytime I do a build so that Unity know what file name to use on the file server?

    What if I only want to update content but user don't actually need to update the application?

    Do I rename the hash and json to last timestamp so that it will fetch the new file list correctly?

    Update:
    I realized that when you "update" a build instead of "create a new build", the catalog file name will not change. So the file name is probably hardcoded when you build the game.
     
    Last edited: Apr 3, 2022
    xucian likes this.
  2. xucian

    xucian

    Joined:
    Mar 7, 2016
    Posts:
    846
    so we basically have to hardcode or store the catalog name on a server?
    speaking here for a project that builds addressables in another project.

    isn't there way to give unity a directory URL and to figure out the latest catalog automatically? at least for initial iterations, this would be incredibly useful. setting up a server just for this seems overkill