mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-05 11:27:39 +00:00
19 lines
472 B
Rust
19 lines
472 B
Rust
|
//! 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(),
|
||
|
));
|
||
|
}
|