Skip to content

Commit

Permalink
Rename UiPickingBackend to UiPickingBackendPlugin (#15462)
Browse files Browse the repository at this point in the history
solves #15450
  • Loading branch information
moOsama76 authored Sep 27, 2024
1 parent 0fe33c3 commit 4e78013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl Plugin for UiPlugin {
build_ui_render(app);

#[cfg(feature = "bevy_ui_picking_backend")]
app.add_plugins(picking_backend::UiPickingBackend);
app.add_plugins(picking_backend::UiPickingBackendPlugin);
}

fn finish(&self, app: &mut App) {
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_ui/src/picking_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ use bevy_picking::backend::prelude::*;

/// A plugin that adds picking support for UI nodes.
#[derive(Clone)]
pub struct UiPickingBackend;
impl Plugin for UiPickingBackend {
pub struct UiPickingBackendPlugin;
impl Plugin for UiPickingBackendPlugin {
fn build(&self, app: &mut App) {
app.add_systems(PreUpdate, ui_picking.in_set(PickSet::Backend));
}
Expand Down

0 comments on commit 4e78013

Please sign in to comment.