- Home /
How to Update Asset Bundles?
Let's say I have created an asset bundle and put it on a server for download. Then, after it is downloaded, I cache it on the iOS or Android device so we can access it without being online.
Then, I make changes to the asset bundle for some reason (maybe there was a problem that a user reported or we wanted to add additional stuff to it) and reupload it to the server. How can I detect that the cached version of the asset bundle is out of data? Do I need to manually record a version number for each asset bundle, or can I do some sort of checksum or something?
Answer by Ray-Pendergraph · Jun 03, 2011 at 09:24 PM
Sounds like you want LoadFromCacheOrDownload. I have never used this but noticed it a while back. Apparently it versions the bundles internally and takes care of the checking and everything.
Ah, that sounds perfect. The only thing then, that I am wary of, is whether this works for mobile devices or only the web player. I'll check it out!