diff --git a/examples/dev_tools/fps_overlay.rs b/examples/dev_tools/fps_overlay.rs index 94fd984764644..9658ad967f245 100644 --- a/examples/dev_tools/fps_overlay.rs +++ b/examples/dev_tools/fps_overlay.rs @@ -21,7 +21,7 @@ fn main() { }, )) .add_systems(Startup, setup) - .add_systems(Update, system) + .add_systems(Update, customize_config) .run(); } @@ -52,7 +52,7 @@ fn setup(mut commands: Commands) { ); } -fn system(input: Res>, mut overlay: ResMut) { +fn customize_config(input: Res>, mut overlay: ResMut) { if input.just_pressed(KeyCode::Digit1) { // Changing resource will affect overlay overlay.0.color = Color::srgb(1.0, 0.0, 0.0);