x


Cannot load cached AssetBundle

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.

Any advice?

Cheers,

Alex.

more ▼

asked Dec 13 '11 at 10:07 PM

alex323qp gravatar image

alex323qp
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

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!

more ▼

answered Dec 13 '11 at 10:22 PM

Aleron gravatar image

Aleron
166 5 7 8

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x548
x395
x200
x39

asked: Dec 13 '11 at 10:07 PM

Seen: 2025 times

Last Updated: Dec 13 '11 at 10:22 PM