Skip to content

Commit

Permalink
Derive Serialize and Deserialize for UiRect (bevyengine#9820)
Browse files Browse the repository at this point in the history
# Objective

Derive `Serialize` and `Deserialize` for `UiRect`
  • Loading branch information
ickshonpe authored Sep 15, 2023
1 parent 462d2ff commit e1904bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ui/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e1904bc

Please sign in to comment.