Function bevy::prelude::resource_exists_and_equals
pub fn resource_exists_and_equals<T>(value: T) -> impl FnMut(Option<Res<'_, T>>)where
T: Resource + PartialEq<T>,
Expand description
Generates a Condition
-satisfying closure that returns true
if the resource exists and is equal to value
.
The condition will return false
if the resource does not exist.