diff --git a/crates/bevy_ecs/src/schedule/config.rs b/crates/bevy_ecs/src/schedule/config.rs index a8dbfc810b638..dcc292d7e8d03 100644 --- a/crates/bevy_ecs/src/schedule/config.rs +++ b/crates/bevy_ecs/src/schedule/config.rs @@ -386,6 +386,14 @@ pub trait IntoScheduleConfigs> IntoScheduleCo self } + /// Chain systems to run in sequence, by implicitly adding ordering constraints between them. + /// + /// Systems in a chain: + /// - Execute in sequential order + /// - Each maintain their own tick state + /// - Have independent change detection + /// - Update ticks even when skipped by conditions + /// - Equivalent to using `before` / `after` system orderings. + /// Later systems in the chain will see changes made by earlier systems while maintaining + /// their own change detection state. fn chain(self) -> Self { self.chain_inner() }