Function bevy_tween::tween::tween_event_system

source ยท
pub fn tween_event_system<Data>(
    q_tween_event_data: Query<'_, '_, (Entity, &TweenEventData<Data>, &TimeSpanProgress, Option<&TweenInterpolationValue>), Without<SkipTween>>,
    event_writer: EventWriter<'_, TweenEvent<Data>>,
)
where Data: Clone + Send + Sync + 'static,
Expand description

Fires TweenEvent with optional user data whenever TimeSpanProgress and TweenEventData exist in the same entity and data is Some, cloning the data.