Hello. More than 100.000 assets (textures, materials, meshes and prefabs) are used in my project. In Addressables, I use groups with the “Bundle Mode - Pack Separately” setting. A complete build takes 20 minutes, which is a good result. But when only one prefab is changed, the build process using “Update a Previous Build” takes 3-5 minutes. Is it possible to speed up build iterations?
For me, the build time is important, because I cannot use the “Use Asset Database” option as I use different projects for resources and for code and load the catalog using LoadContentCatalogAsync.
Is this prefab placed in a scene?
Is this prefab part of another prefab that is placed in a scene?
If that’s the case, then Addressables rebuilds all the scenes where this prefab is placed. The build process bakes prefabs into the scene, a prefab in a scene is no prefab in a build anymore, just a regular GameObject.
It’s a huge bummer, because it not only affects build times, but it also causes that these scenes have to be downloaded again in case you use something like Unity Cloud Content Delivery. Which costs money.
No, prefabs are not placed in scenes. In a project with resources, the scene is completely empty.
Do you have Non-recursive dependency calculation enabled?
Yes. Build is much slower without this option.