Hi,
I’m using addressables in my almost ready to release mobile game to access some levelpack data that is stored online.
This is to prevent a big binary size of the app.
I plan to update my game (binary) each time a new level pack is added, and i also plan to add the associated new levelpack data on my web site (just before the release of the new app version).
A levelpack is more or less defined as one addressable group containing level related asset bundles.
The problem I have is that sometimes, the bundles of some previous older levelpacks are updated (a new bundle with a different hash name is generated).
This happens despite the fact there was no changes at all in them or their dependencies.
It is very annoying, because it will end up with a lot of unnecessary duplicated bundles on my web site, taking a lot of disk space.
(I cannot remove the old bundles because they are still used by the older versions of my app)
I believe it is a bug, but no matter what I try, I cannot find a workaround to fix that.
I did try several option, but all of them have the same problem.
My current options are :
- remote build catalog disabled (I don’t think I need that feature anyway)
- bundle mode pack separately (to download each level one at a time, without having to download all the big level pack content)
- update restriction : cannot Change Post release (I’m not sure about this one, but the 2 options have the same problem anyway)
Once I add a new bundle, I do “New Build->Default build Script” to create the new bundles (and that sometimes incorreclty also create new versions of older bundles)
In attachment, here are 2 versions of an unnecessary updated bundle (with compression and hash in file name disabled).
There are changes in those files.
This might help identifying the problem.
I noticed that the simple action of closing unity, opening it again, and regenerating the bundles could lead to this problem.
Also it seems that performing “Clean Build->All” will duplicates some bundles on next generation, but this is not always the case.
I’m using Addressables 1.6.2, and unity 2019.3.4f1
Is there anything I can do ?
5573155–575191–new.controller.bundle.txt (20.4 KB)
5573155–575194–old.controller.bundle.txt (20.4 KB)