Skip to content

Commit 1329624

Browse files
authored
Fix state transition startup order (#2535)
1 parent 7ceec90 commit 1329624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/learn/book/control-flow/states.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ All state transitions occur during the [`StateTransition`] schedule.
109109

110110
The `StateTransition` schedule itself runs at two points:
111111

112-
1. **During app startup**, after [`PreStartup`] but before [`Startup`]. This is when your initial states' [`OnEnter`] systems run.
112+
1. **During app startup**, before [`PreStartup`]. This is when your initial states' [`OnEnter`] systems run.
113113
2. **Each tick of the game loop**, after [`PreUpdate`] but before the fixed update loop and [`Update`].
114114

115115
When you set a new state with [`NextState<T>`], the transition doesn't happen immediately.

0 commit comments

Comments
 (0)