debugging!!

This commit is contained in:
Schrottkatze 2025-05-21 15:56:23 +02:00
parent 6d269d0c14
commit f518a2c670
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
4 changed files with 25 additions and 9 deletions

18
src/debugging.rs Normal file
View file

@ -0,0 +1,18 @@
//! Seperate out debugging uis/plugins in it's own module for cleanliness.
use bevy::prelude::*;
use bevy_inspector_egui::{
bevy_egui::EguiPlugin,
quick::{StateInspectorPlugin, WorldInspectorPlugin},
};
use crate::AppState;
pub fn plugin(app: &mut App) {
app.add_plugins(EguiPlugin {
enable_multipass_for_primary_context: true,
})
.add_plugins((
WorldInspectorPlugin::new(),
StateInspectorPlugin::<AppState>::new(),
));
}