mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +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);
|
build_ui_render(app);
|
||||||
|
|
||||||
#[cfg(feature = "bevy_ui_picking_backend")]
|
#[cfg(feature = "bevy_ui_picking_backend")]
|
||||||
app.add_plugins(picking_backend::UiPickingBackend);
|
app.add_plugins(picking_backend::UiPickingBackendPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn finish(&self, app: &mut App) {
|
fn finish(&self, app: &mut App) {
|
||||||
|
|
|
@ -36,8 +36,8 @@ use bevy_picking::backend::prelude::*;
|
||||||
|
|
||||||
/// A plugin that adds picking support for UI nodes.
|
/// A plugin that adds picking support for UI nodes.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct UiPickingBackend;
|
pub struct UiPickingBackendPlugin;
|
||||||
impl Plugin for UiPickingBackend {
|
impl Plugin for UiPickingBackendPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_systems(PreUpdate, ui_picking.in_set(PickSet::Backend));
|
app.add_systems(PreUpdate, ui_picking.in_set(PickSet::Backend));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue