1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use bevy::prelude::{ Children, Entity, Node, Query, With, }; pub type QueryEntityChildren<'w, 's> = Query< 'w, 's, WorldQuery, ReadOnlyWorldQuery >; pub type WorldQuery = (Entity, &'static Children); pub type ReadOnlyWorldQuery = With<Node>;