Function bevy::ecs::prelude::on_event

pub fn on_event<T>() -> impl FnMut(EventReader<'_, '_, T>)where
    T: Event,
Expand description

Generates a Condition-satisfying closure that returns true if there are any new events of the given type since it was last called.