How can I query for newly created entities created in the same schedule? #10349
Answered
by
rlidwka
mad-coder-365
asked this question in
Q&A
-
I am adding systems
I am getting an error:
Systems are being added in order: I am even tried adding like How can I query for newly created entities created in the same schedule? |
Beta Was this translation helpful? Give feedback.
Answered by
rlidwka
Nov 3, 2023
Replies: 1 comment 1 reply
-
Use this: app.add_systems(PostStartup, (
spawn_tiles_parent,
apply_deferred, // flush command buffers
setup_tiles,
).chain()) Any |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mad-coder-365
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this:
Any
commands
you add are not executed immediately, they are only applied at the next stage. You can addapply_deferred
to do so manually whenever you need it.