We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
contains
1 parent 5b94272 commit 9fa242eCopy full SHA for 9fa242e
1 file changed
example_backend/examples/simple_button.rs
@@ -85,7 +85,7 @@ fn trigger_remote_toggle(
85
mut commands: Commands,
86
buttons: Query<(), With<ToggleButton>>,
87
) {
88
- if buttons.get(click.entity).is_ok() {
+ if buttons.contains(click.entity) {
89
commands.client_trigger(RemoteToggle {
90
entity: click.entity,
91
});
0 commit comments