pub fn observe<E: EntityEvent, B: Bundle, M>(
observer: impl IntoObserverSystem<E, B, M>,
) -> impl EntityCommand
Expand description
An EntityCommand
that creates an Observer
watching for an EntityEvent
of type E
whose EntityEvent::event_target
targets this entity.