pub fn entity_ui(
        &mut self,
        ui: &mut egui::Ui,
        entity: Entity,
        params: &WorldInspectorParams,
        id: egui::Id,
        entity_options: &EntityAttributes,
    ) -> bool {
        let entity_name = entity_name(self.world, entity);
        let show_entity = params
            .name_filter
            .as_ref()
            .map(|filter| {
                filter.is_empty() || entity_name.to_lowercase().contains(&filter.to_lowercase())
            })
            .unwrap_or(true);

        if show_entity {
            CollapsingHeader::new(entity_name.to_string())
                .id_source(id.with(entity))
                .show(ui, |ui| {
                    self.entity_ui_inner(ui, entity, params, id, entity_options)
                })
                .body_returned
                .unwrap_or(false)
        } else {
            let children = self.world.get::<Children>(entity).cloned();
            if let Some(children) = children {
                for &child in children.iter() {
                    self.entity_ui(ui, child, params, id.with(child), entity_options);
                }
            }
            false
        }
    }
/// Displays an entity and its children in a collapsing header.
Displays an entity and its children in a collapsing header.
Displays an entity and its children in a collapsing header .
pub fn entity_ui(
        &mut self,
        ui: &mut egui::Ui,
        entity: Entity,
        params: &WorldInspectorParams,
        id: egui::Id,
        entity_options: &EntityAttributes,
    ) -> bool {
        let entity_name = entity_name(self.world, entity);
        let show_entity = params
            .name_filter
            .as_ref()
            .map(|filter| {
                filter.is_empty() || entity_name.to_lowercase().contains(&filter.to_lowercase())
            })
            .unwrap_or(true);
        if show_entity {
            CollapsingHeader::new(entity_name.to_string())
                .id_source(id.with(entity))
                .show(ui, |ui| {
                    self.entity_ui_inner(ui, entity, params, id, entity_options)
                })
                .body_returned
                .unwrap_or(false)
        } else {
            let children = self.world.get::<Children>(entity).cloned();
            if let Some(children) = children {
                for &child in children.iter() {
                    self.entity_ui(ui, child, params, id.with(child), entity_options);
                }
            }
            false
        }
    }
pub fn entity_ui ( & mut self , ui : & mut egui :: Ui , entity : Entity , params : & WorldInspectorParams , id : egui :: Id , entity_options : & EntityAttributes , ) -> bool { let entity_name = entity_name ( self . world , entity ) ; let show_entity = params . name_filter . as_ref ( ) . map ( | filter | { filter . is_empty ( ) || entity_name . to_lowercase ( ) . contains ( & filter . to_lowercase ( ) ) } ) . unwrap_or ( true ) ; if show_entity { CollapsingHeader :: new ( entity_name . to_string ( ) ) . id_source ( id . with ( entity ) ) . show ( ui , | ui | { self . entity_ui_inner ( ui , entity , params , id , entity_options ) } ) . body_returned . unwrap_or ( false ) } else { let children = self . world . get :: < Children > ( entity ) . cloned ( ) ; if let Some ( children ) = children { for & child in children . iter ( ) { self . entity_ui ( ui , child , params , id . with ( child ) , entity_options ) ; } } false } }
Displays an entity and its children in a collapsing header.
Displays an entity and its children in a collapsing header .
&mut self
ui
&mut egui::Ui
entity
Entity
params
&WorldInspectorParams
id
egui::Id
entity_options
&EntityAttributes
&mut self
ui
&mut egui::Ui
entity
Entity
params
&WorldInspectorParams
id
egui::Id
entity_options
&EntityAttributes