mirror of
https://github.com/kristoferssolo/maze-ascension.git
synced 2025-10-21 19:20:34 +00:00
feat(dev): add bevy inspector egui
This commit is contained in:
parent
ec9ac21b8f
commit
623b53c34f
@ -19,9 +19,8 @@ tracing = { version = "0.1", features = [
|
||||
] }
|
||||
hexx = { version = "0.18", features = ["bevy_reflect", "grid"] }
|
||||
bevy_prototype_lyon = "0.12"
|
||||
bevy-inspector-egui = { version = "0.26", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
bevy-inspector-egui = "0.26"
|
||||
|
||||
[features]
|
||||
default = [
|
||||
@ -32,6 +31,7 @@ dev = [
|
||||
# Improve compile times for dev builds by linking Bevy as a dynamic library.
|
||||
"bevy/dynamic_linking",
|
||||
"bevy/bevy_dev_tools",
|
||||
"bevy-inspector-egui",
|
||||
]
|
||||
dev_native = [
|
||||
"dev",
|
||||
|
||||
@ -9,6 +9,8 @@ use bevy::{
|
||||
prelude::*,
|
||||
};
|
||||
|
||||
use bevy_inspector_egui::quick::WorldInspectorPlugin;
|
||||
|
||||
use crate::screens::Screen;
|
||||
|
||||
pub(super) fn plugin(app: &mut App) {
|
||||
@ -17,6 +19,7 @@ pub(super) fn plugin(app: &mut App) {
|
||||
|
||||
// Toggle the debug overlay for UI.
|
||||
app.add_plugins(DebugUiPlugin);
|
||||
app.add_plugins(WorldInspectorPlugin::default());
|
||||
app.add_systems(
|
||||
Update,
|
||||
toggle_debug_ui.run_if(input_just_pressed(TOGGLE_KEY)),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user