Skip to content

Commit e6b5f05

Browse files
authored
rename debug_overlay to ui_debug_overlay in bevy_dev_tools (#12737)
# Objective - Be more explicit in the name of the module for the ui debug overlay - Avoid confusion and possible overlap with new overlays ## Solution - Rename `debug_overlay` to `ui_debug_overlay`
1 parent d39ab55 commit e6b5f05

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

crates/bevy_dev_tools/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub mod ci_testing;
1414
pub mod fps_overlay;
1515

1616
#[cfg(feature = "bevy_ui_debug")]
17-
pub mod debug_overlay;
17+
pub mod ui_debug_overlay;
1818

1919
/// Enables developer tools in an [`App`]. This plugin is added automatically with `bevy_dev_tools`
2020
/// feature.

examples/ui/ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() {
2121

2222
#[cfg(feature = "bevy_dev_tools")]
2323
{
24-
app.add_plugins(bevy::dev_tools::debug_overlay::DebugUiPlugin)
24+
app.add_plugins(bevy::dev_tools::ui_debug_overlay::DebugUiPlugin)
2525
.add_systems(Update, toggle_overlay);
2626
}
2727

@@ -374,7 +374,7 @@ fn mouse_scroll(
374374
// The system that will enable/disable the debug outlines around the nodes
375375
fn toggle_overlay(
376376
input: Res<ButtonInput<KeyCode>>,
377-
mut options: ResMut<bevy::dev_tools::debug_overlay::UiDebugOptions>,
377+
mut options: ResMut<bevy::dev_tools::ui_debug_overlay::UiDebugOptions>,
378378
) {
379379
info_once!("The debug outlines are enabled, press Space to turn them on/off");
380380
if input.just_pressed(KeyCode::Space) {

0 commit comments

Comments
 (0)