diff --git a/crates/bevy_picking/src/mesh_picking/mod.rs b/crates/bevy_picking/src/mesh_picking/mod.rs index 3e6241e28c..ceccc12764 100644 --- a/crates/bevy_picking/src/mesh_picking/mod.rs +++ b/crates/bevy_picking/src/mesh_picking/mod.rs @@ -67,7 +67,9 @@ pub struct MeshPickingPlugin; impl Plugin for MeshPickingPlugin { fn build(&self, app: &mut App) { app.init_resource::() - .register_type::<(RayCastPickable, MeshPickingSettings, SimplifiedMesh)>() + .register_type::() + .register_type::() + .register_type::() .add_systems(PreUpdate, update_hits.in_set(PickSet::Backend)); } } diff --git a/crates/bevy_sprite/src/picking_backend.rs b/crates/bevy_sprite/src/picking_backend.rs index ecf8ee04f8..5877b116e0 100644 --- a/crates/bevy_sprite/src/picking_backend.rs +++ b/crates/bevy_sprite/src/picking_backend.rs @@ -68,11 +68,9 @@ pub struct SpritePickingPlugin; impl Plugin for SpritePickingPlugin { fn build(&self, app: &mut App) { app.init_resource::() - .register_type::<( - SpritePickingCamera, - SpritePickingMode, - SpritePickingSettings, - )>() + .register_type::() + .register_type::() + .register_type::() .add_systems(PreUpdate, sprite_picking.in_set(PickSet::Backend)); } }