Trait DespawnRecursiveExt

Source
pub trait DespawnRecursiveExt {
    // Required methods
    fn despawn_recursive(self);
    fn despawn_descendants(&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)

Despawns all descendants of the given entity.

Implementations on Foreign Types§

Source§

impl<'w> DespawnRecursiveExt for EntityMut<'w>

Source§

fn despawn_recursive(self)

Despawns the provided entity and its children.

Source§

fn despawn_descendants(&mut self)

Source§

impl<'w, 's, 'a> DespawnRecursiveExt for EntityCommands<'w, 's, 'a>

Source§

fn despawn_recursive(self)

Despawns the provided entity and its children.

Source§

fn despawn_descendants(&mut self)

Implementors§