Trait DespawnRecursiveExt

Source
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§

Source

fn despawn_recursive(self)

Despawns the provided entity alongside all descendants.

Source

fn despawn_descendants(&mut self) -> &mut Self

Despawns all descendants of the given entity.

Source

fn try_despawn_recursive(self)

Similar to Self::despawn_recursive but does not emit warnings

Source

fn try_despawn_descendants(&mut self) -> &mut Self

Similar to Self::despawn_descendants but does not emit warnings

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§