Derive Serialize and Deserialize for UiRect (#9820)
# Objective Derive `Serialize` and `Deserialize` for `UiRect`
This commit is contained in:
parent
462d2ff238
commit
e1904bcba1
@ -224,8 +224,8 @@ impl Val {
|
|||||||
/// bottom: Val::Px(40.0),
|
/// bottom: Val::Px(40.0),
|
||||||
/// };
|
/// };
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Copy, Clone, PartialEq, Debug, Reflect)]
|
#[derive(Copy, Clone, PartialEq, Debug, Serialize, Deserialize, Reflect)]
|
||||||
#[reflect(PartialEq)]
|
#[reflect(PartialEq, Serialize, Deserialize)]
|
||||||
pub struct UiRect {
|
pub struct UiRect {
|
||||||
/// The value corresponding to the left side of the UI rect.
|
/// The value corresponding to the left side of the UI rect.
|
||||||
pub left: Val,
|
pub left: Val,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user