Function ambient_api::prelude::entity::despawn
source · pub fn despawn(entity: EntityId) -> Option<Entity>
Expand description
Despawns entity
from the world. entity
will not work with any other functions afterwards.
Returns the data of the despawned entity, if it existed.