Defold 1.2.114 has been released

I’ll keep it short here, there will be documentation and more info when its released next sprint.
You will be able to load and unload the assets for collection factories and gameobject factories by marking a factory as “Dynamic loading” (editor checkbox). Not doing so preserves the current behaviour.

The collectionfactory/factory.load is asynchronous and provides a callback that includes result and url to the loaded collectionfactory/factory. You can then unload and load again as you wish.
As usual all resources in the engine are reference counted so any resources created will persist until the last reference is released (which can be either the factory or if unloaded, created object(s)).

3 Likes