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§
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.
Implementations on Foreign Types§
source§impl<'w> DespawnRecursiveExt for EntityMut<'w>
impl<'w> DespawnRecursiveExt for EntityMut<'w>
source§fn despawn_recursive(self)
fn despawn_recursive(self)
Despawns the provided entity and its children.
fn despawn_descendants(&mut self) -> &mut Self
source§impl<'w, 's, 'a> DespawnRecursiveExt for EntityCommands<'w, 's, 'a>
impl<'w, 's, 'a> DespawnRecursiveExt for EntityCommands<'w, 's, 'a>
source§fn despawn_recursive(self)
fn despawn_recursive(self)
Despawns the provided entity and its children.