From 7fc9907cac31271868787ce2f0ff1cc1185839ba Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Mon, 9 Dec 2024 11:03:10 +0100 Subject: [PATCH] uncomment egui code --- bevy_rapier2d/examples/testbed2.rs | 7 +++---- bevy_rapier3d/examples/testbed3.rs | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bevy_rapier2d/examples/testbed2.rs b/bevy_rapier2d/examples/testbed2.rs index ba6dc61d..cbb3cf03 100644 --- a/bevy_rapier2d/examples/testbed2.rs +++ b/bevy_rapier2d/examples/testbed2.rs @@ -13,7 +13,7 @@ mod player_movement2; mod rope_joint2; use bevy::prelude::*; -use bevy_egui::EguiPlugin; +use bevy_egui::{egui, EguiContexts, EguiPlugin}; use bevy_inspector_egui::quick::WorldInspectorPlugin; use bevy_rapier2d::prelude::*; @@ -225,7 +225,7 @@ fn main() { .add_systems( Update, ( - //ui_example_system, + ui_example_system, change_example.run_if(resource_changed::), ) .chain(), @@ -261,7 +261,7 @@ fn change_example( ) { next_state.set(examples_available.0[example_selected.0].state); } -/* + fn ui_example_system( mut contexts: EguiContexts, mut current_example: ResMut, @@ -285,4 +285,3 @@ fn ui_example_system( } }); } -*/ diff --git a/bevy_rapier3d/examples/testbed3.rs b/bevy_rapier3d/examples/testbed3.rs index 9fa94b76..316d713e 100644 --- a/bevy_rapier3d/examples/testbed3.rs +++ b/bevy_rapier3d/examples/testbed3.rs @@ -12,7 +12,7 @@ mod ray_casting3; mod static_trimesh3; use bevy::prelude::*; -use bevy_egui::EguiPlugin; +use bevy_egui::{egui, EguiContexts, EguiPlugin}; use bevy_inspector_egui::quick::WorldInspectorPlugin; use bevy_rapier3d::prelude::*; @@ -210,7 +210,7 @@ fn main() { .add_systems( Update, ( - //ui_example_system, + ui_example_system, change_example.run_if(resource_changed::), ) .chain(), @@ -246,7 +246,7 @@ fn change_example( ) { next_state.set(examples_available.0[example_selected.0].state); } -/* + fn ui_example_system( mut contexts: EguiContexts, mut current_example: ResMut, @@ -270,4 +270,3 @@ fn ui_example_system( } }); } - */