mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
Rename UiPickingBackend to UiPickingBackendPlugin (#15462)
solves #15450
This commit is contained in:
parent
0fe33c3bba
commit
4e7801388c
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue