@@ -610,12 +610,11 @@ pub mod common_conditions {
610
610
}
611
611
612
612
/// A [`SystemCondition`]-satisfying system that returns `true`
613
- /// if the resource of the given type has had its value changed since the condition
614
- /// was last checked.
613
+ /// if the resource of the given type has been added or mutably dereferenced
614
+ /// since the condition was last checked.
615
615
///
616
- /// The value is considered changed when it is added. The first time this condition
617
- /// is checked after the resource was added, it will return `true`.
618
- /// Change detection behaves like this everywhere in Bevy.
616
+ /// **Note** that simply *mutably dereferencing* a resource is considered a change ([`DerefMut`](std::ops::DerefMut)).
617
+ /// Bevy does not compare resources to their previous values.
619
618
///
620
619
/// # Panics
621
620
///
@@ -664,14 +663,11 @@ pub mod common_conditions {
664
663
}
665
664
666
665
/// A [`SystemCondition`]-satisfying system that returns `true`
667
- /// if the resource of the given type has had its value changed since the condition
666
+ /// if the resource of the given type has been added or mutably dereferenced since the condition
668
667
/// was last checked.
669
668
///
670
- /// The value is considered changed when it is added. The first time this condition
671
- /// is checked after the resource was added, it will return `true`.
672
- /// Change detection behaves like this everywhere in Bevy.
673
- ///
674
- /// This run condition does not detect when the resource is removed.
669
+ /// **Note** that simply *mutably dereferencing* a resource is considered a change ([`DerefMut`](std::ops::DerefMut)).
670
+ /// Bevy does not compare resources to their previous values.
675
671
///
676
672
/// The condition will return `false` if the resource does not exist.
677
673
///
@@ -724,15 +720,11 @@ pub mod common_conditions {
724
720
}
725
721
726
722
/// A [`SystemCondition`]-satisfying system that returns `true`
727
- /// if the resource of the given type has had its value changed since the condition
723
+ /// if the resource of the given type has been added, removed or mutably dereferenced since the condition
728
724
/// was last checked.
729
725
///
730
- /// The value is considered changed when it is added. The first time this condition
731
- /// is checked after the resource was added, it will return `true`.
732
- /// Change detection behaves like this everywhere in Bevy.
733
- ///
734
- /// This run condition also detects removal. It will return `true` if the resource
735
- /// has been removed since the run condition was last checked.
726
+ /// **Note** that simply *mutably dereferencing* a resource is considered a change ([`DerefMut`](std::ops::DerefMut)).
727
+ /// Bevy does not compare resources to their previous values.
736
728
///
737
729
/// The condition will return `false` if the resource does not exist.
738
730
///
0 commit comments