Skip to content
Discussion options

You must be logged in to vote

Your issue appears to be misunderstanding of how command application works. The 0.7 docs don't explain it very thoroughly, although some upcoming docs changes are more clear.

What's happening in both of your examples, is that 'first' update detects the mutation from the same tick.
At the very start of your expected output, there should be an instance of:

[...]
update
---------

which you have failed to include here. That is, a tick where only one 'update' occurs.

On the tick after change_and_spawn runs, update then detects the Changed<Comp> because it was added. In your case where you run the system unconditionally, this happens to coincide with a new run of change_and_spawn, which it als…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by cojuer
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
Converted from issue

This discussion was converted from issue #5433 on July 23, 2022 16:58.