Search Issue Tracker

By Design

Won't Fix in 1.0.X

Votes

0

Found in [Package]

1.0.0-pre.5

Issue ID

NCCBUG-107

Regression

No

NetworkVariable is not synced when a client is newly joined

Package: Multiplayer Netcode for GameObjects

-

How to reproduce:
1. Open the user's attached project
2. Build the project (File -> Build Settings... -> Build)
3. Open two instances of the Player Build
4. Select "Client" in one instance, wait 2-5 seconds, then select "Host" in the second instance
5. Observe both Players
6. Close and open two instances of the Player again
7. Select "Host" in one instance, wait 2-5 seconds, then select "Client" in the second instance
8. Observe both Players

Expected result: both times the Cube shifts to the right side for both Player Builds
Actual result: during the first test when the client connects first, the Cube shifts to the right side for both Player Builds, but during the second test it shifts only for the host

Reproducible with: 1.0.0-pre.4, 1.0.0-pre.5 (2020.3.28f1, 2021.2.11f1, 2022.1.0b7, 2022.2.0a3)
Could not test with: 2019.4.36f1 (Netcode for GameObjects not supported)

  1. Resolution Note:

    Replied to customer with explanation on the SDK behaviour and suggested ways to fix

  2. Resolution Note (1.0.X):

    Client code issue:

    " `transform.position = newPos;` during `OnValueChanged`. `OnValueChanged` is not triggered for the initial spawn."

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.