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
- The text, buttons and checkmarks are outside their visual bounds when the Tier Settings window is docked
- Invalid front face configuration when building with GraphicsAPI set to WebGPU
- WebGL builds report wrong screen resolution if "matchWebGLToCanvasSize" is set to "false"
- List<T> in the Inspector does not update values when changed through Dropdown menu
- Crash on keywords::LocalSpace::Find when reimporting specific assets
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.