pub trait DespawnRecursiveExt {
// Required methods
fn despawn_recursive(self);
fn despawn_descendants(&mut self) -> &mut Self;
fn try_despawn_recursive(self);
fn try_despawn_descendants(&mut self) -> &mut Self;
}
Expand description
Trait that holds functions for despawning recursively down the transform hierarchy
Required Methods§
sourcefn despawn_recursive(self)
fn despawn_recursive(self)
Despawns the provided entity alongside all descendants.
sourcefn despawn_descendants(&mut self) -> &mut Self
fn despawn_descendants(&mut self) -> &mut Self
Despawns all descendants of the given entity.
sourcefn try_despawn_recursive(self)
fn try_despawn_recursive(self)
Similar to Self::despawn_recursive
but does not emit warnings
sourcefn try_despawn_descendants(&mut self) -> &mut Self
fn try_despawn_descendants(&mut self) -> &mut Self
Similar to Self::despawn_descendants
but does not emit warnings
Object Safety§
This trait is not object safe.