pub fn despawn() -> impl EntityCommand
Expand description
An EntityCommand
that despawns an entity.
ยงNote
This will also despawn the entities in any RelationshipTarget
that is configured to despawn descendants.
For example, this will recursively despawn Children
.