Trait bevy::ecs::event::Event

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§

§

impl<T> Event for Twhere T: Send + Sync + 'static,