- Home /
How do I instantiate the contents of an asset bundle multiple times?
I am trying to load a series of asset bundles and I am instantiating objects from each one. Sometimes my code sees that an asset bundle has already been downloaded so in which case it needs to just load from the existing bundle. How do I do that?
So I have the basics for each bundle which work fine:
download = new WWW (url);
yield download;
downloadedAssetBundle=Instantiate(download.assetBundle.mainAsset);
..but how do I just instantiate from an existing bundle?
Answer by maximus9600 · Jan 20, 2015 at 04:55 AM
you have to use bundle.unload to keep your object intact so that everytime you load the scene the assetbundle coroutine will download the object and show it in the scene
Your answer
![](https://koobas.hobune.stream/wayback/20220613063451im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
assetBundle.mainAsset exception 0 Answers
how to instantiate Asset bundle from Resources folder 0 Answers
Get instantiated name even before loading the asset from bundle 0 Answers
How to, tell apart, Instance or Instantiated GameObject vs Loaded GameObject. 0 Answers
Multiple instantiated objects, the first fail to scale 0 Answers