You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at the configuration examples but I couldn't figure out a way to have the inspector there from the start but let the panel be minimised. Is there a way to do that I have missed or is it currently not possible? If not, would be great to add it
The text was updated successfully, but these errors were encountered:
It's currently not possible with the quick:: plugins, but they are meant to be able to be copy pasted easily into your own code where you can modify them to your liking:
app.add_plugins((DefaultInspectorConfigPlugin,EguiPlugin))
app.add_system(world_inspector_ui)fnworld_inspector_ui(world:&mutWorld){let egui_context = world
.query_filtered::<&mutEguiContext,With<PrimaryWindow>>().get_single(world);letOk(egui_context) = egui_context else {
return;};letmut egui_context = egui_context.clone();
egui::Window::new("World Inspector").default_size(DEFAULT_SIZE)// you can set default_open(false) here.show(egui_context.get_mut(), |ui| {
egui::ScrollArea::both().show(ui, |ui| {
bevy_inspector::ui_for_world(world, ui);
ui.allocate_space(ui.available_size());});});}
I looked at the configuration examples but I couldn't figure out a way to have the inspector there from the start but let the panel be minimised. Is there a way to do that I have missed or is it currently not possible? If not, would be great to add it
The text was updated successfully, but these errors were encountered: