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
- Crash on RendererScene::NotifyInvisible when entering Play mode after undoing a change within the scene with Ctrl+z
- [iOS] Final Image misaligned when using "ScalableBufferManager.ResizeBuffers" to resize
- GameObjects are not updating when Materials and Cubemaps are updated from Environmental Reflections
- "Lens Flare (SRP)" Component is missing documentation link
- Reflection problems when unbaked Reflection Probes are present
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.