lightyear icon indicating copy to clipboard operation
lightyear copied to clipboard

Change detection/replication doesn't work on replication-group children

Open treytencarey opened this issue 4 months ago • 2 comments

Initially I had a PlayerText(String) component on my PlayerBundle. I set a timer for 5 seconds that changes PlayerText, and on the client I listen for Changed<PlayerText> and updated the text. This worked fine. But now I wanted to make this a separate bundle, PlayerTextBundle. I still see the timer completes, but the client no longer receives the changed value.

Here's a sample project: https://github.com/treytencarey/placeholder_interest_group_management

  • Start the server and client. Notice the client has text "Server should change this..." (comes from protocol.rs)
  • After 5 seconds, notice the server says "Timer complete". The code updates the PlayerText. (comes from server.rs)
  • Notice the client never receives Changed<PlayerText>. (in client.rs)
  • I have verified that without using groups, change detection/replication works as expected.

treytencarey avatar Oct 04 '24 00:10 treytencarey