Skip to main content

despawn_one

Function despawn_one 

Source
fn despawn_one(
    scope: &mut ScopeMut<'_>,
    entity: Entity,
) -> Result<Value, String>
Available on crate feature mcp and non-WebAssembly only.
Expand description

Despawn one entity and its subtree.

An entity the scope cannot remove is an error the caller reads, not a false beside a name: what to do about it depends on why.