Trait bevy_ecs::event::Event

source ·
pub trait Event: Send + Sync + 'static { }
Expand description

A type that can be stored in an Events<E> resource You can conveniently access events using the EventReader and EventWriter system parameter.

Events must be thread-safe.

Implementors§

source§

impl Event for RemovedComponentEntity
where Self: Send + Sync + 'static,

source§

impl<S: States> Event for StateTransitionEvent<S>
where Self: Send + Sync + 'static,