Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

Downloading/Caching Assetbundles

$
0
0
I've been trying to work out the Downloading and Caching of Assetbundles in Unity. I've currently got it so that I am able to download and instantiate an asset from the assetbundle... (using https://docs.unity3d.com/ScriptReference/WWW.LoadFromCacheOrDownload.html) however I need to be able to do this separately some how. If I can - In a separate scene, I need to be able to click a button to download and cache an assetbundle, without initiating anything. Then I guess I'll need to write some sort of instantiate script which I can use per asset that I want to spawn, where on start, checks to see either if the assetbundle is downloaded/present then loads the chosen asset. I want to be able to spawn approx 4-5 assets from each assetbundle. Since I only have slight experience with the Unity sample code above, I don't have a clue how to access the cache to instantiate an asset separately. I also want to be able to link the download progress to some sort of loading bar. If anyone has any ideas or suggestions, I would love to hear them. Thanks!

Viewing all articles
Browse latest Browse all 312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>