I have the following code to find all models in the children of a template:
let inst = templateAsset.resource.instantiate();
let models = inst.findComponents('model');
I’m finding that if I have a child entity disabled, models attached to that entity will not be found. My workaround at the moment is to just never have disabled entities in my templates.
How can I include disabled entities in this search?
I’ve just reread that you use disabled entities. In which case, it is very likely that until the entity is first enabled, the components are not added to the entity as an optimisation.