#Add component to all children entities (recursive)

1 messages · Page 1 of 1 (latest)

cerulean pasture
#

Is there a way to add a component to all children entities on a BakingSystem?

[WorldSystemFilter(WorldSystemFilterFlags.BakingSystem)]

woven compass
#

if you update a baker system in
[UpdateInGroup(typeof(PostBakingSystemGroup))]
your linked entity groups will have been setup so you can access anything linked

cerulean pasture
#

Thank you tertle, do i query for something like this then?

.Query<DynamicBuffer<LinkedEntityGroupBakingData>>()
woven compass
#

at this point you should only need to query for LinkedEntityGroup