x


How do you set an AssetBundle's version number?

So the 3.4 function WWW.LoadFromCacheOrDownload(url, version) takes the version integer. My question is, how do you set the version number when you're creating an assetbundle?

more ▼

asked Aug 17 '11 at 05:11 PM

normantran86 gravatar image

normantran86
31 4 6 8

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

1 answer: sort voted first

You just pass in an arbitrary number you pick yourself for version. The point is that when you call LoadFromCacheOrDownload again, with a different version parameter, your data will get reloaded. This lets you control updates to your cached AssetBundles.

more ▼

answered Aug 17 '11 at 08:32 PM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

It's nice to note you only assign that number on LoadFromCacheOrDownload itself, and nowhere in the bundle. So, that's not even a real version controlling - you'll have to keep your version control somewhere else and then you can only apply it using this.

May 28 '12 at 08:51 PM Cawas

i think the answer is not clear at all...

"How do you set an AssetBundle's version number?"

everywhere i found the "READ version" but not "WRITE version"

Mar 03 at 10:12 PM Talavang
(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:

x525
x382

asked: Aug 17 '11 at 05:11 PM

Seen: 1644 times

Last Updated: Mar 03 at 10:12 PM