From 4e7801388c4fc0a5aff918013fc00331acba5bbc Mon Sep 17 00:00:00 2001 From: Mohamed Osama <67656249+moOsama76@users.noreply.github.com> Date: Fri, 27 Sep 2024 03:50:06 +0300 Subject: [PATCH] Rename UiPickingBackend to UiPickingBackendPlugin (#15462) solves #15450 --- crates/bevy_ui/src/lib.rs | 2 +- crates/bevy_ui/src/picking_backend.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_ui/src/lib.rs b/crates/bevy_ui/src/lib.rs index 90089f58f4..9a840ac7d9 100644 --- a/crates/bevy_ui/src/lib.rs +++ b/crates/bevy_ui/src/lib.rs @@ -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) { diff --git a/crates/bevy_ui/src/picking_backend.rs b/crates/bevy_ui/src/picking_backend.rs index bb57537145..d66c3f995c 100644 --- a/crates/bevy_ui/src/picking_backend.rs +++ b/crates/bevy_ui/src/picking_backend.rs @@ -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)); }