Skip to content
Discussion options

You must be logged in to vote

Ah I know what I did wrong. Obviously don't add a system to an app which repeatedly spawns something while also trying get a single, additionally don't code at 3 in the morning.

When implementing everything properly everything works as expected

For the full proper implementation use:
.add_startup_systems((command_spawn,apply_system_buffers,query).chain())
This will work as expected and print out the value 12 once. Additionally removing apply_system_buffers while still keeping them in a chain can sometimes still allow it to function (but obviously don't rely on this) while removing the chain guarantees that an error will be thrown.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by rowanfr
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