[Photon]Stream always writing

In my script photon stream is always writing

private void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
    {
        Debug.Log("writing "+stream.isWriting+" view "+ photonView.isMine+" d_t "+Time.deltaTime);
        if (stream.isWriting)
        {

            stream.SendNext(transform.position);
        }
        else
        {

            transform.position = (Vector3)stream.ReceiveNext();
        }
    }

And logs always show double true values. In scene only client player moves, other players don’t move

Have you tried putting a debug.log statement in the else part of the condition to see if the remote clients are receiving the data?

1 Like