pub fn world_ui<F>(&mut self, ui: &mut egui::Ui, params: &mut WorldInspectorParams) -> bool
    where
        F: WorldQuery,
        F::Fetch: FilterFetch,
    {
        let mut root_entities = self.world.query_filtered::<Entity, (Without<Parent>, F)>();

        // the entities are unique themselves, because only one WorldInspector can exist
        let dummy_id = egui::Id::new(42);
        let entity_options = params.entity_options();

        let mut changed = false;

        if let Some(filter) = params.name_filter.as_mut() {
            ui.horizontal(|ui| {
                ui.label("Named");
                ui.text_edit_singleline(filter);
            });
        }

        let entites = root_entities.iter(self.world).collect::<Vec<_>>();
        for entity in entites {
            changed |= self.entity_ui(ui, entity, params, dummy_id.with(entity), &entity_options);
        }

        changed
    }
/// Displays the world inspector UI.
Displays the world inspector UI.
Displays the world inspector UI .
pub fn world_ui<F>(&mut self, ui: &mut egui::Ui, params: &mut WorldInspectorParams) -> bool
    where
        F: WorldQuery,
        F::Fetch: FilterFetch,
    {
        let mut root_entities = self.world.query_filtered::<Entity, (Without<Parent>, F)>();
        // the entities are unique themselves, because only one WorldInspector can exist
        let dummy_id = egui::Id::new(42);
        let entity_options = params.entity_options();
        let mut changed = false;
        if let Some(filter) = params.name_filter.as_mut() {
            ui.horizontal(|ui| {
                ui.label("Named");
                ui.text_edit_singleline(filter);
            });
        }
        let entites = root_entities.iter(self.world).collect::<Vec<_>>();
        for entity in entites {
            changed |= self.entity_ui(ui, entity, params, dummy_id.with(entity), &entity_options);
        }
        changed
    }
pub fn world_ui < F > ( & mut self , ui : & mut egui :: Ui , params : & mut WorldInspectorParams ) -> bool where F : WorldQuery , F :: Fetch : FilterFetch , { let mut root_entities = self . world . query_filtered :: < Entity , ( Without < Parent > , F ) > ( ) ; // the entities are unique themselves, because only one WorldInspector can exist let dummy_id = egui :: Id :: new ( 42 ) ; let entity_options = params . entity_options ( ) ; let mut changed = false ; if let Some ( filter ) = params . name_filter . as_mut ( ) { ui . horizontal ( | ui | { ui . label ( " " ) ; ui . text_edit_singleline ( filter ) ; } ) ; } let entites = root_entities . iter ( self . world ) . collect :: < Vec < _ > > ( ) ; for entity in entites { changed |= self . entity_ui ( ui , entity , params , dummy_id . with ( entity ) , & entity_options ) ; } changed }
Displays the world inspector UI.
Displays the world inspector UI .
&mut self
ui
&mut egui::Ui
params
&mut WorldInspectorParams
&mut self
ui
&mut egui::Ui
params
&mut WorldInspectorParams