Rename UiPickingBackend to UiPickingBackendPlugin (#15462)

solves #15450
This commit is contained in:
Mohamed Osama 2024-09-27 03:50:06 +03:00 committed by GitHub
parent 0fe33c3bba
commit 4e7801388c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -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));
}