We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a616fa8 commit d319910Copy full SHA for d319910
crates/bevy_ecs/src/change_detection.rs
@@ -46,7 +46,12 @@ pub trait DetectChanges {
46
/// Returns `true` if this value was added after the system last ran.
47
fn is_added(&self) -> bool;
48
49
- /// Returns `true` if this value was added or mutably dereferenced after the system last ran.
+ /// Returns `true` if this value was added or mutably dereferenced
50
+ /// either since the last time the system ran or, if the system never ran,
51
+ /// since the beginning of the program.
52
+ ///
53
+ /// To check if the value was mutably dereferenced only,
54
+ /// use `this.is_changed() && !this.is_added()`.
55
fn is_changed(&self) -> bool;
56
57
/// Returns the change tick recording the time this data was most recently changed.
0 commit comments