@@ -419,6 +419,8 @@ impl VelocitySource for () {
419
419
/// On its own, this component is not updated automatically. Enable an easing backend
420
420
/// such as the [`TransformInterpolationPlugin`] to perform automatic interpolation.
421
421
#[ derive( Component , Clone , Copy , Debug , Default , PartialEq , Reflect ) ]
422
+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
423
+ #[ cfg_attr( feature = "serialize" , reflect( Serialize , Deserialize ) ) ]
422
424
#[ reflect( Component , Debug , Default ) ]
423
425
pub struct TranslationEasingState {
424
426
/// The start translation for the interpolation.
@@ -433,6 +435,8 @@ pub struct TranslationEasingState {
433
435
/// On its own, this component is not updated automatically. Enable an easing backend
434
436
/// such as the [`TransformInterpolationPlugin`] to perform automatic interpolation.
435
437
#[ derive( Component , Clone , Copy , Debug , Default , PartialEq , Reflect ) ]
438
+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
439
+ #[ cfg_attr( feature = "serialize" , reflect( Serialize , Deserialize ) ) ]
436
440
#[ reflect( Component , Debug , Default ) ]
437
441
pub struct RotationEasingState {
438
442
/// The start rotation for the interpolation.
@@ -447,6 +451,8 @@ pub struct RotationEasingState {
447
451
/// On its own, this component is not updated automatically. Enable an easing backend
448
452
/// such as the [`TransformInterpolationPlugin`] to perform automatic interpolation.
449
453
#[ derive( Component , Clone , Copy , Debug , Default , PartialEq , Reflect ) ]
454
+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
455
+ #[ cfg_attr( feature = "serialize" , reflect( Serialize , Deserialize ) ) ]
450
456
#[ reflect( Component , Debug , Default ) ]
451
457
pub struct ScaleEasingState {
452
458
/// The start scale for the interpolation.
0 commit comments