#iter_descendants from exclusive world

2 messages · Page 1 of 1 (latest)

bitter plume
#

Hi! Any ideas on how to access iter_descendants from world?

        let mut query = world.query::<&Children>();
        for child in query.iter_descendants(self.task_entity) {

        }

The above doesn't work. If I'm looking at the implementation of HierarchyQueryExt, it works for Query<&Children> not QueryState<&Children>, and I'm not sure if there's any way to convert from one to the other. Assuming this is even my problem?

In any case, any help is appreciated!

#

I think I sussed it out!