mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 14:40:19 +00:00
Warn that Added/Changed filters do not see deferred changes (#10681)
Explain https://github.com/bevyengine/bevy/issues/10625. This might be obvious to those familiar with Bevy internals, but it surprised me. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
parent
960f6e9131
commit
48af029f7b
1 changed files with 13 additions and 0 deletions
|
@ -551,6 +551,12 @@ impl_tick_filter!(
|
||||||
/// To retain all results without filtering but still check whether they were added after the
|
/// To retain all results without filtering but still check whether they were added after the
|
||||||
/// system last ran, use [`Ref<T>`](crate::change_detection::Ref).
|
/// system last ran, use [`Ref<T>`](crate::change_detection::Ref).
|
||||||
///
|
///
|
||||||
|
/// # Deferred
|
||||||
|
///
|
||||||
|
/// Note, that entity modifications issued with [`Commands`](crate::system::Commands)
|
||||||
|
/// are visible only after deferred operations are applied,
|
||||||
|
/// typically at the end of the schedule iteration.
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -587,6 +593,13 @@ impl_tick_filter!(
|
||||||
/// To retain all results without filtering but still check whether they were changed after the
|
/// To retain all results without filtering but still check whether they were changed after the
|
||||||
/// system last ran, use [`Ref<T>`](crate::change_detection::Ref).
|
/// system last ran, use [`Ref<T>`](crate::change_detection::Ref).
|
||||||
///
|
///
|
||||||
|
/// # Deferred
|
||||||
|
///
|
||||||
|
/// Note, that entity modifications issued with [`Commands`](crate::system::Commands)
|
||||||
|
/// (like entity creation or entity component addition or removal)
|
||||||
|
/// are visible only after deferred operations are applied,
|
||||||
|
/// typically at the end of the schedule iteration.
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue