Say I have the following situation:
I have Collection A and Collection B that both use a particular resource (say, a material).
Collection A is loaded through a collection proxy and marked as “Exclude” for LiveUpdate.
Collection B is loaded through a collection factory.
Please correct me if I’m wrong, but for me, expected behaviour is that, since Collection B is referenced by the main collection and can be loaded at any moment, its resources should still be in the main bundle in case the factory is loaded.
Apparently, Defold excludes the common resource from the main bundle and moves it to the LiveUpdate content, so the code spawning Collection B will crash if called before the LiveUpdate content for Collection A is stored.
I made a minimal repro case where it crashes because /builtins/materials/label.materialc
gets moved to the live update content: https://github.com/dapetcu21/liveupdate-dynamicfactory-reprocase
UPDATE: I discovered that the issue applies to non-dynamic collection factories as well.