Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.1f1
Issue ID
919519
Regression
No
A synced variable, changed by passing it to a function with parameter ref, does not sync between server and client
To reproduce:
1. Open the project, attached by tester (syncVarRef.zip)
2. Build the project for standalone
3. Launch the build as host
4. Enter Play mode in the editor and connect as client
5. In host, press Space
6. In Editor, select each Cube game object individually in the Hierarchy
7. Observe the Test script in the Inspector (both cubes' lookTarget value is 0)
8. (Optional) Observe the Test.cs script
Expected: changing a synced variable by passing it into the method by reference causes the variable to sync between the server and client
Actual: variable is not synced when passed into the method by reference
Reproduced in 5.4.5p2, 5.5.4f1, 5.6.1f1, 2017.1.0b9, 2017.2.0a3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Mass closure of UNET Bugs.
As UNet is Deprecated we are moving to low maintenance mode, where critical issues can get fixes.
Closing this bug as part of cleaning-up the Bug List.
If you feel this bug is really a road-blocker, you can reopen the bug and we will work this one.