Skip to main content

despawn_all_where

Function despawn_all_where 

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

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