- Home /
How to add an AssetBundle into cache from a file
I have an AssetBundle on disk, a string path
pointing to it and the Hash128 bundleHash
of the bundle.
How can I move the AssetBundle from path
into Unity's AssetBundle caching system?
I cannot use UnityWebRequest.GetAssetBundle(path, hash, 0)
because of performance reasons on IOS
The Caching
class does not seem to have any interface for doing this.
Answer by Casiell · Oct 11, 2018 at 07:43 AM
Can you use WWW class? It can fetch assetBundle for you and it works with local file system, not only by network
I tried. same issues. I think I read somewhere that WWW uses UnityWebRequest internally
Your answer
Follow this Question
Related Questions
How Unity Generates Cache Hash For AssetBundles 1 Answer
Cannot download large assetbundle with WWW.LoadFromCacheOrDownload on old iOS device 1 Answer
Caching Unity Web Request downloaded Asset Bundles denied by iOS 0 Answers
Addressable Assets Cache 0 Answers
how to serializ assetsbundle name string to cache folder names? 1 Answer