OnPhotonSerializeView not working?

Options
Well, it IS working, but putting Debug.Logs in there don't get printed. I have a feeling it might be a tad broken, anyone else get this?

Answers

  • For reference, here's my code so far:
    public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
        {
            Debug.Log("SerializeView running");
            if (stream.isWriting)
            {
                stream.SendNext(active);
            }
    
            if (stream.isReading)
            {
                active = (bool)stream.ReceiveNext();
            }
        }
    

    The Debug.Log doesn't get printed, but the active state gets sent over?