Search Unity

Simple Example for using the Asset Bundle Caching System?

Discussion in 'Asset Bundles' started by jacksonbarnes, Aug 7, 2019.

  1. jacksonbarnes


    Sep 13, 2017
    I've been trying to figure out the caching system but I'm just a little confused on how to get the hash and the name of the asset bundle before it even gets downloaded with the .GetAssetBundle()? Like when you are constructing the CachedAssetBundle struct, do you have to download the manifest for that asset bundle first then pull its hash/name THEN pass the cachedAssetBundle struct into the .GetAssetBundle(uri, cachedAssetBundle, 0)?

    Can someone please just provide a simple example script on how to use the asset bundle caching system?