use bevy::prelude::*; use aery::prelude::*; use super::name::Name; #[derive(Relation)] pub struct ChildOf; pub fn debug_children( tree: Query<(&Name, Relations)>, roots: Query> ) { tree.traverse::(roots.iter()) .track_self() .for_each(|Name(parent), _, Name(child), _| { debug!("{} is the parent of {}", parent, child); }); }