pub fn despawn_all_where<D: QueryData, F: QueryFilter>( cond: impl FnMut(D::Item<'_, '_>) -> bool + Send + 'static, ) -> impl Command
A Command that despawns all entities matching a specific QueryFilter and condition.
Command
QueryFilter