We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 269bdc8 commit f80e340Copy full SHA for f80e340
crates/bevy_ecs/README.md
@@ -148,9 +148,13 @@ fn main() {
148
// Create a new Schedule, which defines an execution strategy for Systems
149
let mut schedule = Schedule::default();
150
151
+ // Define a unique public name for a new Stage.
152
+ #[derive(StageLabel)]
153
+ pub struct UpdateLabel;
154
+
155
// Add a Stage to our schedule. Each Stage in a schedule runs all of its systems
156
// before moving on to the next Stage
- schedule.add_stage("update", SystemStage::parallel()
157
+ schedule.add_stage(UpdateLabel, SystemStage::parallel()
158
.with_system(movement)
159
);
160
0 commit comments