Do game objects have to be displayed?

Hi!

I’m very new to Defold, but am finding my way quickly and loving it.

I have a question about factories using dynamic prototypes. I have this working as I want it, inasmuch as I have a factory and a handful of different game objects that it can create.

However, these game objects must be in the same collection as the factory so that they are compiled, and I can reference their binary versions in order for the factory to be able to create them, which means they’re on screen. Unless they can be compiled without including them in the collection?

Ultimately I will have dozens of such game objects. I can just drag them out of the viewable area, but is there another way? Can I have a game object in my collection, but not displayed?

Many thanks in anticipation.

1 Like

I wonder if it might be enough to load the collection either the objects through a proxy but not initialize it?

1 Like

Ooh, I haven’t gotten as far as working out how proxies work, and what they do exactly, I’ll tackle that over the weekend. Thanks for the suggestion!