Derive Serialize and Deserialize for UiRect (#9820)

# Objective

Derive `Serialize` and `Deserialize` for `UiRect`
This commit is contained in:
ickshonpe 2023-09-15 20:51:57 +01:00 committed by GitHub
parent 462d2ff238
commit e1904bcba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,