blob: 4036ced1d14845461be221e78abf3d9cf50e2a9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use bevy::prelude::*;
use bevy_inspector_egui::{RegisterInspectable, WorldInspectorPlugin};
pub struct DebugPlugin;
impl Plugin for DebugPlugin {
fn build(&self, app: &mut App) {
if cfg!(debug_assertions) {
app.add_plugin(WorldInspectorPlugin::new());
}
}
}
|