Open shelbyjuno opened 4 days ago
I deleted the zip, it was too large of a project to investigate. Please check out these guidelines here and upload another if you could https://fish-networking.gitbook.io/docs/manual/guides/creating-bug-reports#guidelines
I deleted the zip, it was too large of a project to investigate. Please check out these guidelines here and upload another if you could https://fish-networking.gitbook.io/docs/manual/guides/creating-bug-reports#guidelines
My bad! I've updated the link with a small .unitypackage
!
OnChangeBug.zip
@shelbyjuno I just tried the example you made, and it's working correctly on my end. Here's a video showing it: https://github.com/user-attachments/assets/708a1996-ffde-4478-88ce-478547c63059
My most likely guess is your client isn't observing the object. Did you try rebuilding the scene ids from the Tools->FishNetworking toolbar menu?
@maxkratt That is extremely odd, I've recorded a video of me first trying 4.4.4 and then 4.4.5, while rebuilding scene IDs both times just to make sure there is nothing stupid I am missing:
https://github.com/user-attachments/assets/86c030a8-2f3f-4f12-8b88-d7f7c7847b3a
General Unity version: 6000.0.18f1 Fish-Networking version: 4.4.5R (does NOT repro on 4.4.4R) Discord link 1: https://discord.com/channels/424284635074134018/1034477094731784302/1284362548635893760 Discord link 2: https://discord.com/channels/424284635074134018/1034477094731784302/1284577274552647795
Description When subscribing to the
OnChange
event on a SyncVar, only one event (whereasServer == true
) is fired when acting as both server and client.Replication Steps to reproduce the behavior:
Alternatively, create a new project and use a script such as:
Expected behavior When Server and Client, OnChange should fire two events, one with
asServer == true
and oneasServer == false
Screenshots
4.4.5
4.4.4