mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Derive Serialize and Deserialize for UiRect (#9820)
# Objective Derive `Serialize` and `Deserialize` for `UiRect`
This commit is contained in:
parent
462d2ff238
commit
e1904bcba1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue