mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-05 11:27:39 +00:00
debugging!!
This commit is contained in:
parent
6d269d0c14
commit
f518a2c670
4 changed files with 25 additions and 9 deletions
18
src/debugging.rs
Normal file
18
src/debugging.rs
Normal 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(),
|
||||
));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue