#I need help destroying children!

1 messages · Page 1 of 1 (latest)

hollow orbit
#

Or at least persuading them not to render when they're deactivated. I just really don't want to see them!!

I've got a zombie prefab setup with a child, 'Model', which itself has 51 children - all variant models (it's the Synty Studios zombie characters pack asset, so a solution which involves restructuring the prefab format isn't really suitable).
The zombies spawn fine, but every single variant model is rendering at the same time, despite most of them being disabled, which is... less than ideal. The prefabs are initialized, and have a Disabled tag component added, to a command buffer which runs in EndInitializationEntityCommandBufferSystem.

I have a hunch it's something to do with them being child-of-child entities, but as DOTS 1.0 is very new, it's been a tough and unfruitful search - and typing 'trouble baking children' into google enough will probably get me put on some kind of watchlist. Hopefully someone here is able to shed some light on what I'm missing?