Skip to content
Discussion options

You must be logged in to vote

Yes, I noticed that in a PR before, but that's also the reason I am asking this question: I can't find how I am supposed to use it.

Instead of &mut component you use component.bypass_change_detection().

Naturally, when I combine this network synchronization, that updates component's data, with change detection in order to trigger such updates, I end up in a loop.

If you put both sides of the sync (bevy to network and network to bevy) into the same system, you won't have any loops. This is my preferred approach at the moment.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by alice-i-cecile
Comment options

You must be logged in to vote
1 reply
@alice-i-cecile
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants