pub fn ui_for_world(world: &mut World, ui: &mut Ui)
Expand description

Display Entities, Resources and Assets using their respective functions inside headers

Examples found in repository?
src/quick.rs (line 46)
37
38
39
40
41
42
43
44
45
46
47
48
49
50
fn world_inspector_ui(world: &mut World) {
    let egui_context = world
        .resource_mut::<bevy_egui::EguiContext>()
        .ctx_mut()
        .clone();
    egui::Window::new("World Inspector")
        .default_size(DEFAULT_SIZE)
        .show(&egui_context, |ui| {
            egui::ScrollArea::vertical().show(ui, |ui| {
                bevy_inspector::ui_for_world(world, ui);
                ui.allocate_space(ui.available_size());
            });
        });
}