Skip to content

Commit 3ca7b50

Browse files
Include SpawnScene in docs for Main schedule (#21624)
# Objective Currently the docs for [`SpawnScene`](https://docs.rs/bevy/latest/bevy/app/struct.SpawnScene.html) link to the [`Main`](https://docs.rs/bevy/latest/bevy/prelude/struct.Main.html) schedule, but those docs don't mention when it runs. ## Solution Updates docs to include this information, based on the schedule ordering defined here: https://github.com/bevyengine/bevy/blob/78d940cbfe177e3585fe19145e73c76172f4085e/crates/bevy_app/src/main_schedule.rs#L222-L224
1 parent 8253eab commit 3ca7b50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/bevy_app/src/main_schedule.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use bevy_ecs::{
3333
/// * [`RunFixedMainLoop`]
3434
/// * This will run [`FixedMain`] zero to many times, based on how much time has elapsed.
3535
/// * [`Update`]
36+
/// * [`SpawnScene`]
3637
/// * [`PostUpdate`]
3738
/// * [`Last`]
3839
///
@@ -173,7 +174,7 @@ pub struct Update;
173174

174175
/// The schedule that contains scene spawning.
175176
///
176-
/// See the [`Main`] schedule for some details about how schedules are run.
177+
/// This runs after [`Update`] and before [`PostUpdate`]. See the [`Main`] schedule for more details about how schedules are run.
177178
#[derive(ScheduleLabel, Clone, Debug, PartialEq, Eq, Hash, Default)]
178179
pub struct SpawnScene;
179180

0 commit comments

Comments
 (0)