Skip to content

Commit 4eeef8b

Browse files
meepleekItsDoot
authored andcommitted
Update RemovedComponents doc comment (bevyengine#4373)
# Objective - Clarify `RemovedComponents` are flushed in `CoreStage::Last` and systems relying on that should run before that stage ## Solution - Update `RemovedComponents` doc comment
1 parent 37593ac commit 4eeef8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_ecs/src/system/system_param.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,9 @@ impl<'w, 's, T: Resource + FromWorld> SystemParamFetch<'w, 's> for LocalState<T>
676676
/// and will need to be manually flushed using [`World::clear_trackers`]
677677
///
678678
/// For users of `bevy` itself, this is automatically done in a system added by `MinimalPlugins`
679-
/// or `DefaultPlugins` at the end of each pass of the game loop.
679+
/// or `DefaultPlugins` at the end of each pass of the game loop during the `CoreStage::Last`
680+
/// stage. As such `RemovedComponents` systems should be scheduled after the stage where
681+
/// removal occurs but before `CoreStage::Last`.
680682
///
681683
/// # Examples
682684
///

0 commit comments

Comments
 (0)