Loading contents of a folder as AssetBundle
Hi, I have an array of sprites which I would like to preload into my app.
My folder set up is as follows... folderA* > img1.sprite ~ img10.sprite ( assetbundleA) folderB > img1.sprite ~ img10.sprite ( * assetbundleB)
These sprites will playback in sequence during runtime... for example: user tap on folderA button - the set of sprites in that folder will playback.
All works find when I'm using 'Resource.Load'....now I want to test it with AssetBundle but I'm stuck.
I am able to load the bundles...but how do I access the sprites inside the folders to playback the animation??
Have studied the tutorial provided here , it covers loading asset bundles from GameObject and Scene....there are no step-by-step guide for loading asset bundle as folders. Any tutorial or help would be great here. Thank you in advance..
Answer by xpkoalz · Jul 03, 2017 at 04:13 AM
New in other words.....I managed to :-
export a folder of sprites into an assetbundle
upload the assetbundle to a server
download it in unity
but how do I access the sprites and have them playback in a sequence??
Finally was able to access the sprites and have them playback.
Problem now is: How do I retreive the cached assetbundles??~!!!
using WWW.LoadFromCacheOrDownload does not work for me, I can't even load my assetbundle with this method.
using UnityWebRequest, I'm able to load the bundles and was able to check if it is cached by using Caching.IsVersionCached, however, I have no idea where to retreive this 'cached' version of the bundle....seriously...I am running around in circles...
seems like the only solution i have right now is to write the data to local...which is again not recommended. and seems like there is no complete tutorial and no straight-forward answer to this. Please can someone just tell me, how to access the cached assetbundles!?
Your answer
Follow this Question
Related Questions
Loading many sprites at runtime 0 Answers
Onde encontro a pasta "projet's assets"? 0 Answers
How to animated Sprite Shape with Sprite Sheet? 0 Answers
Stop animation at any frame? or have two idle states? 0 Answers
Animations are not playing when prefebs are loaded using asset bundle in Unity 5.3 1 Answer