mirror of
https://github.com/storytold/bevy-mocap.git
synced 2026-10-09 00:09:45 +00:00
add dexterous developer & egui inspector to example
This commit is contained in:
+7
-1
@@ -8,9 +8,15 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
bevy = { version = "0.12", default-features = false, features = ["bevy_pbr", "bevy_render", "bevy_asset", "animation", "bevy_animation"]}
|
||||
serde = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
bevy = { version = "0.12", default-features = true }
|
||||
dexterous_developer = "0.1"
|
||||
bevy-inspector-egui = "0.22"
|
||||
|
||||
|
||||
|
||||
[[example]]
|
||||
name = "simple_example"
|
||||
path = "examples/simple_example.rs"
|
||||
crate-type = ["dylib"]
|
||||
@@ -1,9 +1,13 @@
|
||||
use bevy::{pbr::{CascadeShadowConfigBuilder, DirectionalLightShadowMap}, prelude::*};
|
||||
use bevy_inspector_egui::quick::WorldInspectorPlugin;
|
||||
use dexterous_developer::{hot_bevy_main, InitialPlugins};
|
||||
|
||||
fn main() {
|
||||
#[hot_bevy_main]
|
||||
pub fn bevy_main(initial_plugins: impl InitialPlugins) {
|
||||
App::new()
|
||||
.add_plugins(initial_plugins.initialize::<DefaultPlugins>())
|
||||
.add_plugins(WorldInspectorPlugin::new())
|
||||
.insert_resource(DirectionalLightShadowMap { size: 4096 })
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_systems(Startup, setup)
|
||||
.run();
|
||||
}
|
||||
@@ -40,4 +44,5 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
scene: asset_server.load("example.gltf#Scene0"),
|
||||
..default()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user