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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.