RootObjects

Type Alias RootObjects 

Source
pub type RootObjects<'w, 's, T = Any, F = ()> = Objects<'w, 's, T, (F, Without<ChildOf>)>;
Expand description

Ergonomic type alias for all Objects of Kind T without a parent.

Aliased Type§

pub struct RootObjects<'w, 's, T = Any, F = ()> {
    pub instance: Query<'w, 's, Instance<T>, (F, Without<ChildOf>)>,
    pub hierarchy: HierarchyQuery<'w, 's>,
    pub nametags: Query<'w, 's, AnyOf<(&'static Name, &'static Tags)>>,
}

Fields§

§instance: Query<'w, 's, Instance<T>, (F, Without<ChildOf>)>

Query used to filter instances of the given Kind T.

§hierarchy: HierarchyQuery<'w, 's>

HierarchyQuery used to traverse the object hierarchy.

§nametags: Query<'w, 's, AnyOf<(&'static Name, &'static Tags)>>

Query to identify objects by name or tags, mainly used for for hierarchy traversal and searching.