Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

OnPhotonSerializeView not fire in scene photonView?

$
0
0
Hi, I use photonView on a gameobject which is aready in scene. like this:

In LocalPlayScene.cs :

public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
{
Debug.Log("OnPhotonSerializeView");
if (stream.isWriting)
{
// We own this player: send the others our data
stream.SendNext(chacters);
}
else
{
// Network player, receive data
this.chacters =(List<SlotContainerKeyPair>)stream.ReceiveNext();
Debug.Log(stream.ReceiveNext());

}
}


But when I play. there's no Log info out.


Am I wrong?
Please Help

Viewing all articles
Browse latest Browse all 15755

Trending Articles