Search Unity

Asset Bundle Manifest Versioning

Discussion in 'Asset Bundles' started by kartoonist435, Aug 5, 2019.

  1. kartoonist435

    kartoonist435

    Joined:
    Feb 14, 2015
    Posts:
    24
    Hi All,
    I'm trying to get the version number of the Android Bundle Manifest from the web and having a rough time. I can get the versions of all the Asset Bundles I need in the project but I would like the manifest to be updated from the web when new content is available. I can't find any place in the documentation where I can compare Manifest versions and I don't want to require a device side update just to update the manifest if it is stored locally (Streaming Assets) like most of the examples and tutorials show. Ideally when I start up the app checks the manifest on the web and downloads it if it's different from the cached version. If there is no internet it would hopefully just use the one in cache. This app doesn't require many app updates but the content "packs" will change a lot and this is why I'd like to avoid the manifest being local. Thank you.
     
  2. bmarinariSparky

    bmarinariSparky

    Joined:
    Jan 5, 2018
    Posts:
    9
    There is no built-in way to do this as far as I know, but a common way to do it is to put a small file on the server with a hash or version number that hints whether content has changed. You can get the file relatively easily with a UnityWebRequest. We use a JSON file instead that has a bunch of custom data about the asset changes.