Is there a max collection limit in Defold? (SOLVED)

If I were to write a tool to procedurally generate a large number of collections, would this be an issue? The end result would likely be a CollectionFactory containing roughly a large amount of collection factories with fixed IDs for programmatic creation. Then, a random number generator could select one of those collection factories at random and instantiate it. This could serve as a random map generation system then, without having to resort to generating maps at runtime. However, it could increase the app size significantly and would be less dynamic than a true random map generator done at runtime (since the number of random collections would obviously be fixed.) Or is there a better way to implement such a system? I’d like to be able to create a complex collection randomly with a tilemap and 3D objects placed in the scene with scaling/rotation set programatically. I can’t think of any other way to do this currently other than such a system.

There is a limit specified in game.project, but it’s malleable like most other limits. I don’t see it affecting much since the collections are not all loaded at the same time. I’ve done this in the past as well with no problems.

1 Like

Thank you!