You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
OS: Windows 11
Unity Version: 6000.0.28f1
Netcode Version: 2.1.1 AND 2.2.0
The text was updated successfully, but these errors were encountered:
What is the write permissions for movingStateObject?
Could you check which write permissions are set for that NetworkVariable and then only change the NetworkVariable if the client instance has permissions and see if that fixes the issue you are experiencing?
If not, could you provide more of your script so I can better understand other things that could be causing this issue?
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: