Closed
Description
What problem does this solve or what need does it fill?
Currently there are methods that add a child/children to an entity without having to specify the relationship, but the same isn't true for despawning.
What solution would you like?
Add a despawn_children
method to EntityCommands
pub fn despawn_children(&mut self) -> &mut Self {
self.despawn_related::<Children>();
}
Obviously this isn't really all that important, but it's nice to have the symmetry.
What alternative(s) have you considered?
commands
.entity(entity)
.despawn_related::<Children>();