From aabb32f9a46dcab2812a7cdaf7c166c336bc9d38 Mon Sep 17 00:00:00 2001 From: Rabbival <87331993+Rabbival@users.noreply.github.com> Date: Thu, 12 Mar 2026 13:30:50 +0200 Subject: [PATCH 1/2] Add Copy trait to Pickable component It not deriving Copy makes config structs with it also non-Copy It has two simple flags, there's no reason for it not to be --- crates/bevy_picking/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_picking/src/lib.rs b/crates/bevy_picking/src/lib.rs index 497eb7c33e460..ee5a499dc97cf 100644 --- a/crates/bevy_picking/src/lib.rs +++ b/crates/bevy_picking/src/lib.rs @@ -191,8 +191,8 @@ pub mod prelude { /// This allows you to make an entity non-hoverable, or allow items below it to be hovered. /// /// See the documentation on the fields for more details. -#[derive(Component, Debug, Clone, Reflect, PartialEq, Eq)] -#[reflect(Component, Default, Debug, PartialEq, Clone)] +#[derive(Component, Debug, Clone, Copy, Reflect, PartialEq, Eq)] +#[reflect(Component, Default, Debug, PartialEq, Clone, Copy)] pub struct Pickable { /// Should this entity block entities below it from being picked? /// From 6d3a24f063d86f4d3e8824adcc93c3800ddd6d0b Mon Sep 17 00:00:00 2001 From: Rabbival <87331993+Rabbival@users.noreply.github.com> Date: Thu, 12 Mar 2026 13:35:58 +0200 Subject: [PATCH 2/2] one cannot reflect Copy --- crates/bevy_picking/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_picking/src/lib.rs b/crates/bevy_picking/src/lib.rs index ee5a499dc97cf..f0eaefa289c6a 100644 --- a/crates/bevy_picking/src/lib.rs +++ b/crates/bevy_picking/src/lib.rs @@ -192,7 +192,7 @@ pub mod prelude { /// /// See the documentation on the fields for more details. #[derive(Component, Debug, Clone, Copy, Reflect, PartialEq, Eq)] -#[reflect(Component, Default, Debug, PartialEq, Clone, Copy)] +#[reflect(Component, Default, Debug, PartialEq, Clone)] pub struct Pickable { /// Should this entity block entities below it from being picked? ///