pub fn observe<M>(observer: impl IntoEntityObserver<M>) -> impl EntityCommandExpand description
An EntityCommand that creates an Observer
watching for an EntityEvent of type E whose
event_target targets this entity.
Accepts any type that implements IntoEntityObserver, including:
- Observer systems (closures or functions implementing
IntoObserverSystem) - Observer systems with run conditions (via
.run_if())