From f09c3a1a56fabd7d75e29ef9757a9e7020ab371b Mon Sep 17 00:00:00 2001 From: Wuketuke <59253838+Wuketuke@users.noreply.github.com> Date: Mon, 7 Jul 2025 21:51:46 +0200 Subject: [PATCH] doc improvement for StateTransition (#19597) Fixes #19594 The exact problem is described in that issue. I improved the docs to guide anyone who has the the same issue I had. I kept myself minimal, since the problem is relatively niche, hopefully it will be enough if anyone else has that problem --- crates/bevy_state/src/state/transitions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_state/src/state/transitions.rs b/crates/bevy_state/src/state/transitions.rs index 1ee21826c3..90b033b7fd 100644 --- a/crates/bevy_state/src/state/transitions.rs +++ b/crates/bevy_state/src/state/transitions.rs @@ -50,6 +50,8 @@ pub struct OnTransition { /// } /// ``` /// +/// This schedule is split up into four phases, as described in [`StateTransitionSteps`]. +/// /// [`PreStartup`]: https://docs.rs/bevy/latest/bevy/prelude/struct.PreStartup.html /// [`PreUpdate`]: https://docs.rs/bevy/latest/bevy/prelude/struct.PreUpdate.html #[derive(ScheduleLabel, Clone, Debug, PartialEq, Eq, Hash, Default)]