Search Unity

Getting checksum of (local) bundles

Discussion in 'Addressables' started by Lowscope, Sep 24, 2021.

  1. Lowscope

    Lowscope

    Joined:
    Jun 4, 2015
    Posts:
    11
    Dear Unity devs,

    Is there a way to get a checksum of the current bundles? Or in other words, know if the
    bundle has been changed compared to the last runtime load?

    A short summary of what I want to achieve. And I'm unsure on how I could tackle the issue:

    Currently I have a bunch of skins in my game. Personally I would like the general data about them stored within
    the prefab itself. As this makes development a bit cleaner, and quicker.

    So in order to obtain the metadata about the skin (price, unlockable... etc ) I have to load the asset, get the component. Cache the values to a JSON file and unload the handle.

    Although, I do want a way to prevent having to do this on every startup, and I would like a way to know if the bundle(s) have changed. So I can just skip the loading step, and use the cached data of the previous build, to improve startup times. Not sure how big this difference is going to be in the end.

    Hopefully you guys can give me some advice on how to tackle this.

    Kind Regards.
     
  2. shelllee

    shelllee

    Joined:
    Apr 12, 2018
    Posts:
    18
    is this a question?