Asset bundle storage location

It appears that asset bundles are stored in Cache and if user clears the temporary cache. It deletes the asset bundle. Is there a way to configure changing asset bundle storage location to persistent data path?

I am primarily interested in Android and IOS. Thanks

You could use WWW.bytes and AssetBundle.CreateFromFile to implement the persistent data storage yourself.

1 Like

Thank you very much, it works. Unfortunately I am using compressed assetbundles and CreateFromFile only support uncompressed. As a workaround, I can create AssetBundle using:
AssetBundle.CreateFromMemoryImmediate(File.ReadAllBytes(filePath));

But I am wondering - Is there a way to convert compressed assetbundle into uncompressed asset bundle?
I am downloading compressed assetbundle and want to store uncompressed assetbundle to file local storage. Thanks

I just remembered that uncompressed/compressed issue was addressed in another thread where I participated:

Basic solution: use WWW to load the file from disk (using file://) and it will support all formats of assetbundles.

1 Like

Thank you, you are very helpful… Yes this works very well… Once again, thank you…