Init Resource in one system and immediately use in another #9763
-
Here is the code. I understand why it does not work: when I call
|
Beta Was this translation helpful? Give feedback.
Answered by
alice-i-cecile
Sep 11, 2023
Replies: 1 comment
-
Commands can be manually scheduled by inserting a copy of the However, that's not your only good option here! You could also:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
romamik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
FromWorld
trait to perform more complex resource initialization