Skip to content
Discussion options

You must be logged in to vote

Assuming you are aware of the (sys1, sys2, sys3).chain() combinator as in the ecs_guide.rs example, and you are asking for a way to run systems outside of the regular scheduling system. You need exclusive world access for this.

  1. Create a schedule with the systems in question in it
  2. Run the schedule on the world

The transform system tests are a good example of this:

let mut schedule = Schedule::new();
schedule.add_systems((sync_simple_transforms, propagate_transforms));
let mut command_queue = CommandQueue::default();
let mut commands = Commands::new(&mut command_queue, &world);
let r…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@SpomJ
Comment options

@nicopap
Comment options

nicopap Aug 21, 2023
Collaborator

Answer selected by SpomJ
Comment options

You must be logged in to vote
1 reply
@SpomJ
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants