Function bevy::prelude::resource_equals

pub fn resource_equals<T>(value: T) -> impl FnMut(Res<'_, T>)where
    T: Resource + PartialEq<T>,
Expand description

Generates a Condition-satisfying closure that returns true if the resource is equal to value.

Panics

The condition will panic if the resource does not exist.