Search Unity

Third Party Photon - PhotonView "OnPhotonSerializeView" not called after ownership transfer

Discussion in 'Multiplayer' started by farhanblu, Jul 27, 2015.

  1. farhanblu

    farhanblu

    Joined:
    Dec 29, 2014
    Posts:
    49
    So, I got stuck with a problem and have been reading up on it ever since, but I'm unable to grasp the idea. I have a photonView observing itself, so 'OnPhotonSerializeView' is firing, as expected. However, when I change the ownership, 'OnPhotonSerializeView' stops firing, although it should not, so if it was writing to stream previously, it should now read the stream. Any idea what could I be doing wrong.
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,072
    If someone else is now the owner, that client needs to send updates, before OnPhotonSerializeView gets called again.
    Maybe the object doesn't move and you set the observe option to "Unreliable On Change" or "Delta Compressed"?
     
    Deleted User likes this.
  3. farhanblu

    farhanblu

    Joined:
    Dec 29, 2014
    Posts:
    49
    Oh, just noticed, it is set to "unreliable on change". Now I understand what the option meant. Thanks tobiass, I will confirm the solution soon.