-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add .with_system_set method to SystemSet #2722
Copy link
Copy link
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-ComplexQuite challenging from either a design or technical perspective. Ask for help!Quite challenging from either a design or technical perspective. Ask for help!S-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-ComplexQuite challenging from either a design or technical perspective. Ask for help!Quite challenging from either a design or technical perspective. Ask for help!S-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished
What problem does this solve or what need does it fill?
Reusing system sets is currently challenging: users may for example want to run a collection of systems in several states at once.
What solution would you like?
Add
with_system_setto matchwith_systemon theSystemSetstruct.What alternative(s) have you considered?
More completely overhaul / reorganize system sets and scheduling.
Additional context
This should be relatively straightforward for newcomers who want to get to know the ECS a bit better. Follow the impl here:
bevy/crates/bevy_ecs/src/schedule/system_set.rs
Line 94 in c893b99
and push the systems from the new system set into
self's corresponding field instead.