Crates.io | bevy_schedules_ext |
lib.rs | bevy_schedules_ext |
version | 0.14.1 |
source | src |
created_at | 2024-02-26 16:59:40.383506 |
updated_at | 2024-08-07 16:15:15.205984 |
description | A Bevy plugin for expanding the use of schedules. |
homepage | |
repository | https://github.com/vonforum/bevy_schedules_ext |
max_upload_size | |
id | 1153970 |
size | 53,337 |
Adds functionality to Bevy's existing Schedules, allowing nesting and using schedules as a replacement for Sets for system grouping and ordering.
Extends Bevy's existing structures, no .add_plugin
or managing new Resources.
Nest one or more schedules:
With bevy_schedules_ext |
Vanilla bevy |
|
|
All systems will run in Bevy's update loop without having to manually call run
on the custom schedules.
A full example is available in examples/nested_schedules.rs.
Use Bevy's States as Schedules, so you can add systems to your states and have them run when the state is active, no run conditions needed.
With bevy_schedules_ext |
Vanilla bevy |
|
|
A full example is available in examples/states.rs.
Since running a schedule requires exclusive world access, schedules can't run in parallel. So any time systems in different groupings need to run in parallel, nesting or using schedule states will block that. Ideally, you'd use a combination of both this crate and vanilla Bevy, with schedules to contain the larger groupings of systems and vanilla Bevy to handle groups that might overlap.
Bevy version | bevy_schedules_ext version |
---|---|
main branch |
master branch |
0.14.1 |
0.14.1 |
0.13 |
0.13 |
Note: A newer version of this crate may work on an older version of Bevy and vice versa, however it's not tested
and would require extra work on your part (e.g. patching Cargo.toml
to match the versions).
All code in this repository is dual-licensed under either:
at your option. This means you can select the license you prefer.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.