Replies: 2 comments 2 replies
-
I think that GitHub has dropped some bits of your code between angle brackets, which is making it difficult to figure out what the question is. Could you edit the post and paste your code again, but in triple backticks? Like this:
|
Beta Was this translation helpful? Give feedback.
-
Okay, so it looks like you've expanded on the basic example from the Bevy book with your own fn insert_things(query: Query<Entity, With<Person>>, mut commands: Commands) {
for entity in query.iter() {
commands.entity(entity).insert(ToDelete);
}
} This would add fn insert_things(query: Query<(Entity, &Name), With<Person>>, mut commands: Commands) {
for (entity, name) in query.iter() {
if name.0 == "Filipe" {
commands.entity(entity).insert(ToDelete);
}
}
} Or if you want, there's another commands.entity(entity).despawn(); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions