diff --git a/src/tween_event.rs b/src/tween_event.rs index 932c697..5f8904e 100644 --- a/src/tween_event.rs +++ b/src/tween_event.rs @@ -112,7 +112,7 @@ impl PluginGroup for DefaultTweenEventPlugins { /// Fires [`TweenEvent`] whenever [`TimeSpanProgress`] and [`TweenEventData`] exist in the same entity. #[derive(Default, Debug, Clone, PartialEq, Eq, Hash, Component, Reflect)] #[reflect(Component)] -pub struct TweenEventData(Data) +pub struct TweenEventData(pub Data) where Data: Send + Sync + 'static;