Skip to content

Add .with_system_set method to SystemSet #2722

Description

@alice-i-cecile

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_set to match with_system on the SystemSet struct.

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:

pub fn with_system<Params>(mut self, system: impl IntoSystemDescriptor<Params>) -> Self {

and push the systems from the new system set into self's corresponding field instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-ComplexQuite 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 accomplished

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions