From e1904bcba186e94984fcb077bc2c80bce5ec96e6 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Fri, 15 Sep 2023 20:51:57 +0100 Subject: [PATCH] Derive Serialize and Deserialize for UiRect (#9820) # Objective Derive `Serialize` and `Deserialize` for `UiRect` --- crates/bevy_ui/src/geometry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ui/src/geometry.rs b/crates/bevy_ui/src/geometry.rs index f799efe2ad..734fcd65c6 100644 --- a/crates/bevy_ui/src/geometry.rs +++ b/crates/bevy_ui/src/geometry.rs @@ -224,8 +224,8 @@ impl Val { /// bottom: Val::Px(40.0), /// }; /// ``` -#[derive(Copy, Clone, PartialEq, Debug, Reflect)] -#[reflect(PartialEq)] +#[derive(Copy, Clone, PartialEq, Debug, Serialize, Deserialize, Reflect)] +#[reflect(PartialEq, Serialize, Deserialize)] pub struct UiRect { /// The value corresponding to the left side of the UI rect. pub left: Val,