- Home /
This question was
closed May 30, 2016 at 06:08 AM by
Prasanna for the following reason:
Other
Question by
Prasanna · Dec 29, 2014 at 08:58 AM ·
instantiateassetbundledownloadloadfromcacheordownload
Asset bundle not load the object, but it download
Hi all, I used this script for downloading my object from server and load. My download progress is working fine, but it's not showing/loading the object.
IEnumerator Start()
{
WWW www = WWW.LoadFromCacheOrDownload (url, 1);
{
while( !www.isDone )
{
progress = " " + (www.progress * 100.0f).ToString("#") + " %";
yield return null;
}
yield return www;
AssetBundle bundle = www.assetBundle;
GameObject Table_Mate = bundle.Load("Table_Mate", typeof(GameObject)) as GameObject;
Instantiate (Table_Mate);
}
}
Here is the snippet. I searched many places, but still didn't get anything, and i don't have any errors.
Comment
I'm not proficient at coroutines but maybe you should put your yield return at the very bottom of the function?
I tried this, well it crash my browser. I can't run this application.
Follow this Question
Related Questions
Download assetBundle from server 2 Answers
How to destroy instantiated object 1 Answer
Not download/load from cache for second time 0 Answers
Asset Bundle Download Problem 0 Answers
Downloading Asset Bundle on Android and Saving to File 1 Answer