Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configure_schedules to App and Schedules to apply `ScheduleBuildS…
…ettings` to all schedules (#9514) # Objective - Fixes: #9508 - Fixes: #9526 ## Solution - Adds ```rust fn configure_schedules(&mut self, schedule_build_settings: ScheduleBuildSettings) ``` to `Schedules`, and `App` to simplify applying `ScheduleBuildSettings` to all schedules. --- ## Migration Guide - No breaking changes. - Adds `Schedule::get_build_settings()` getter for the schedule's `ScheduleBuildSettings`. - Can replaced manual configuration of all schedules: ```rust // Old for (_, schedule) in app.world.resource_mut::<Schedules>().iter_mut() { schedule.set_build_settings(build_settings); } // New app.configure_schedules(build_settings); ```
- Loading branch information