Skip to content
Discussion options

You must be logged in to vote

Use this:

app.add_systems(PostStartup, (
    spawn_tiles_parent,
    apply_deferred, // flush command buffers
    setup_tiles,
).chain())

Any commands you add are not executed immediately, they are only applied at the next stage. You can add apply_deferred to do so manually whenever you need it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mad-coder-365
Comment options

Answer selected by mad-coder-365
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