#Query children of an entity for a component

1 messages · Page 1 of 1 (latest)

fast hemlock
#

I'm still acquainting myself with queries in DOTS, is there a way to query for a component on only the children of a specific entity? I'm instantiating from a prefab, and I only want to query for a specific component with only the children of the instantiated prefab entity.

worthy lotus
#

There is a Child buffer that is what defines the hierarchy (but this will take a frame to be added)

#

Alternatively you can just itereate the LinkedEntityGroup for all child and linked entities (first element will always be root though)