Trait bevy_hierarchy::DespawnRecursiveExt

source ·
pub trait DespawnRecursiveExt {
    // Required methods
    fn despawn_recursive(self);
    fn 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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DespawnRecursiveExt for EntityCommands<'_>

source§

fn despawn_recursive(self)

Despawns the provided entity and its children. This will emit warnings for any entity that does not exist.

source§

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

source§

impl<'w> DespawnRecursiveExt for EntityWorldMut<'w>

source§

fn despawn_recursive(self)

Despawns the provided entity and its children. This will emit warnings for any entity that does not exist.

source§

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

Implementors§