Skip to main content

despawn_all_where

Function despawn_all_where 

Source
pub fn despawn_all_where<D: QueryData, F: QueryFilter>(
    cond: impl FnMut(D::Item<'_, '_>) -> bool + Send + 'static,
) -> impl Command
Expand description

A Command that despawns all entities matching a specific QueryFilter and condition.