Open
Description
What problem does this solve or what need does it fill?
There's no way to currently get the first entity that matches a given query from a SystemParameter.
What solution would you like?
Something like this
fn destroy_first(wall: First<Entity, With<Wall>>, mut commands: Commands) {
let entity = wall.into_inner();
commands.entity(entity).despawn();
}
What alternative(s) have you considered?
Just using a query and taking the first from the iterator.