pub fn despawn_query<Components: ComponentsTuple + Copy + Clone + 'static>(
    components: Components
) -> EventQuery<Components>
Expand description

Creates a new EventQuery that will find entities that have the specified components that will call its bound function when an entity with those components are despawned / seen for the last time by this query.