Skip to content

Change system set builder to force users to put the "config" first #1994

@hymm

Description

@hymm

What solution would you like?

with_system on the SystemSet builder returns something that only implements with_system, so config things like labeling, run_criteria, etc. must be placed before the systems.

What problem does this solve or what need does it fill?

This would fix #1912.

This would explicitly enforce @cart's preference on this comment #1909 (comment)

What alternative(s) have you considered?

We can just keep things as they are. Cargo fmt disambiguates this decently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-FeatureA new feature, making something new possibleC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions