diff --git a/crates/bevy_ui/src/focus.rs b/crates/bevy_ui/src/focus.rs index b9ef20069e9a3b..f83054b2a8a14b 100644 --- a/crates/bevy_ui/src/focus.rs +++ b/crates/bevy_ui/src/focus.rs @@ -33,7 +33,7 @@ use smallvec::SmallVec; #[derive( Component, Copy, Clone, Default, Eq, PartialEq, Debug, Reflect, Serialize, Deserialize, )] -#[reflect_value(Component, Serialize, Deserialize, PartialEq)] +#[reflect(Component, Serialize, Deserialize, PartialEq)] pub enum Interaction { /// The node has been clicked Clicked, @@ -48,7 +48,7 @@ pub enum Interaction { #[derive( Component, Copy, Clone, Default, Eq, PartialEq, Debug, Reflect, Serialize, Deserialize, )] -#[reflect_value(Component, Serialize, Deserialize, PartialEq)] +#[reflect(Component, Serialize, Deserialize, PartialEq)] pub enum FocusPolicy { /// Blocks interaction #[default] diff --git a/crates/bevy_ui/src/widget/image.rs b/crates/bevy_ui/src/widget/image.rs index 40f023bf7b7f44..70e3a96fd50386 100644 --- a/crates/bevy_ui/src/widget/image.rs +++ b/crates/bevy_ui/src/widget/image.rs @@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize}; /// Describes how to resize the Image node #[derive(Component, Debug, Default, Clone, Reflect, Serialize, Deserialize)] -#[reflect_value(Component, Serialize, Deserialize)] +#[reflect(Component, Serialize, Deserialize)] pub enum ImageMode { /// Keep the aspect ratio of the image #[default]