Jan
22
2017

Load AssetBundles with Caching

Small sample script to load assetbundles.

Features:
– It first loads bundle hash from the manifest file on server
– Then uses that hash string as asset bundle loader parameter (to use cached version if available, see docs)
– Instantiate gameobject after loading

source:
https://github.com/UnityCommunity/UnityLibrary/blob/master/Scripts/AssetBundles/AssetBundleLoader.cs

 


Leave a comment

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.