Save AssetBundle to persistent data path
Hi, i'm relatively new to Unity, and I just started to use AssetBundles. I'm struggling to save an Asset Bundle at Application.persistentDataPath
. I have searched for this topic and couldn't find this exact situation described.
I've already created the Asset Bundle, just don't know how to store it during runtime in the persistentDataPath. (In a future, the intention is to download the AssetBundle from a Server)
Which would be the best aproach? This is a game intended for android and iOS devices
Edit: I read about WWW.LoadFromCacheOrDownload()
but that wouldn't work as I need the bundle to stay in devices memory, not in cache (It will be used at start of the the game, and it's quite heavy to be redownloaded everytime the cache is cleared). It should only be downloaded once, and just updated everytime we update it's version
Answer by Krellumdaed · May 27, 2020 at 12:45 AM
Wow, 3 years and no answers. I have the same question. I will keep searching.