Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

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?