-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start minimised #216
Comments
It's currently not possible with the app.add_plugins((DefaultInspectorConfigPlugin, EguiPlugin))
app.add_system(world_inspector_ui)
fn world_inspector_ui(world: &mut World) {
let egui_context = world
.query_filtered::<&mut EguiContext, With<PrimaryWindow>>()
.get_single(world);
let Ok(egui_context) = egui_context else {
return;
};
let mut 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());
});
});
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: