Hi guys, I hope i'm not making a stupid question, but I haven't been able to find a proper answer to this...
This is the deal: I'm downloading assets dynamically using WWW class. Everything works wonderful! The problem is that when I attempt to download the same asset twice, I get:
You are trying to load data from a www stream which had the following error when downloading. Cannot load cached AssetBundle. A file of the same name is already loaded from another AssetBundle. UnityEngine.WWW:get_assetBundle()
I haven't been able to find the way of checking for already loaded AssetBundles.
If you are retaining a reference to the first asset bundle after you download it, you can simply check to see if it is null. If not, then it is already loaded. If it is, then it has been unloaded.
But I would do is create a manager of sorts that keeps a list of the asset bundles you use so that you can quickly access them and check whether they are loaded or not.
I hope that helps!
answered Dec 13 '11 at 10:22 PM