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
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
- [Linux] "Error while reading movie" errors are thrown when opening templates
- Shader warnings are being thrown after building Mixed Reality Template
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.