The observed monobehaviour (Player) of this PhotonView does not implement OnPhotonSerializeView()!

Options

Hello,

I'm new to Photon. Since a few days I'm getting this error for all Photon Views with observed Components.

Thanks for help

Answers

  • Lenny_tra
    Options

    Now I know I get these errors for the scripts from photon like Transform view or animator view. But I still don't know how to fix this.

  • Alejandrazo
    Options

    Hey guy, not enough info, but it seems is because you use

    "MonobehaviourPunCallbacks, IPunObservable"

    But not using the next:

    _____________________

    public void OnPhotonSerializeView(PhotonStream stream,PhotonMessageInfo info)

    {

    if(stream.isWriting)

    {

    //Outgoing Data

    stream.SendNext(life);

    }

    else

    {

    //Incoming Data

    life= (float)stream.ReceiveNext()

    }

    }

    ______________________

    IPunObservable + OnPhotonSerializeView()== work