Skip to content
Discussion options

You must be logged in to vote

Commands can be manually scheduled by inserting a copy of the apply_deferred system between the system where you produce the command and where you need it to have been ready.

However, that's not your only good option here! You could also:

  • use the FromWorld trait to perform more complex resource initialization
  • use an exclusive system to directly insert the resource into the world, skipping the indirection of commands completely

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by romamik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
A-ECS Entities, components, systems, and events
2 participants