Changing NetworkVariable value make NetworkTransform do not sync from client to server #3188
Labels
Investigating
Issue is currently being investigated
stat:awaiting response
Status - Awaiting response from author.
stat:awaiting triage
Status - Awaiting triage from the Netcode team.
type:bug
Bug Report
Description
After changing a networkvariable value on a networkobject, client never sends transform changes to the server, until server gain ownership again.
Important: This bug happens in NGO v2.1.1 AND v2.2.0. In the version 2.0.0, this bug does not exist.
Reproduce Steps
Create a gameobject in your scene. Add the following :
Create a script that has a networkvariable and attach it to the same gameobject.
For example, on key pressed, change the Value of the network variable, then change ownership.
Here is an excerpt of my code :
When a client (not server) gains the control, he can move the object. This can only be visisble by him. For the server, the gameobject do not move at all.
In the opposite case (server gains the control to move the object), it moves both on server and client, no matter if networkvariable value change.
I tried to stop setting movingStateObject.Value, and the problem disappears. Weird.
This bug happens in NGO v2.1.1 AND v2.2.0. Simply downgrading to v2.0.0 fixes the bug.
Sorry for my english, if you need more information, just comment and I will answer as soon as I can. Thanks.
Environment
The text was updated successfully, but these errors were encountered: