pub fn entity_ui_inner(
        &mut self,
        ui: &mut egui::Ui,
        entity: Entity,
        params: &WorldInspectorParams,
        id: egui::Id,
        entity_options: &EntityAttributes,
    ) -> bool {
        let mut changed = false;

        changed |= self.component_kind_ui(
            ui,
            |archetype| archetype.table_components(),
            "Components",
            entity,
            params,
            id,
        );
        changed |= self.component_kind_ui(
            ui,
            |archetype| archetype.sparse_set_components(),
            "Components (Sparse)",
            entity,
            params,
            id,
        );

        ui.separator();

        let children = self.world.get::<Children>(entity).cloned();
        if let Some(children) = children {
            ui.label("Children");
            for &child in children.iter() {
                self.entity_ui(ui, child, params, id.with(child), entity_options);
            }
        } else {
            ui.label("No children");
        }

        if entity_options.despawnable {
            if label_button(ui, "✖ Despawn", Color32::RED) {
                self.delete_entity.set(Some(entity));
                changed = true;
            }
        }

        changed
    }
/// Displays an entity and its children.
Displays an entity and its children.
Displays an entity and its children .
pub fn entity_ui_inner(
        &mut self,
        ui: &mut egui::Ui,
        entity: Entity,
        params: &WorldInspectorParams,
        id: egui::Id,
        entity_options: &EntityAttributes,
    ) -> bool {
        let mut changed = false;
        changed |= self.component_kind_ui(
            ui,
            |archetype| archetype.table_components(),
            "Components",
            entity,
            params,
            id,
        );
        changed |= self.component_kind_ui(
            ui,
            |archetype| archetype.sparse_set_components(),
            "Components (Sparse)",
            entity,
            params,
            id,
        );
        ui.separator();
        let children = self.world.get::<Children>(entity).cloned();
        if let Some(children) = children {
            ui.label("Children");
            for &child in children.iter() {
                self.entity_ui(ui, child, params, id.with(child), entity_options);
            }
        } else {
            ui.label("No children");
        }
        if entity_options.despawnable {
            if label_button(ui, "✖ Despawn", Color32::RED) {
                self.delete_entity.set(Some(entity));
                changed = true;
            }
        }
        changed
    }
pub fn entity_ui_inner ( & mut self , ui : & mut egui :: Ui , entity : Entity , params : & WorldInspectorParams , id : egui :: Id , entity_options : & EntityAttributes , ) -> bool { let mut changed = false ; changed |= self . component_kind_ui ( ui , | archetype | archetype . table_components ( ) , " " , entity , params , id , ) ; changed |= self . component_kind_ui ( ui , | archetype | archetype . sparse_set_components ( ) , " " , entity , params , id , ) ; ui . separator ( ) ; let children = self . world . get :: < Children > ( entity ) . cloned ( ) ; if let Some ( children ) = children { ui . label ( " " ) ; for & child in children . iter ( ) { self . entity_ui ( ui , child , params , id . with ( child ) , entity_options ) ; } } else { ui . label ( " " ) ; } if entity_options . despawnable { if label_button ( ui , " C lor32:: RE D)  { self . delete_entity . set ( Some ( entity ) ) ; changed = true ; } } changed }
Displays an entity and its children.
Displays an entity and its children .
&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