6/12/2023 0 Comments On photon serialize viewOnPhotonSerializeView gets called, isWriting is true, and when the other player is moving, for example, its false. If this is not called, make sure it's in the Observed Components list of the PhotonView, on a prefab, which you then instantiate as networked object. Public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)Įlse if (stream. Two players have to be in the room, before PUN calls any OnPhotonSerializeView. If (Input.GetKeyDown(Ke圜ode.Return) & myText.Length > 0) Public class Chat : MonoBehaviourPunCallbacks, IPunObservable Should there be a photonview component on the same object as the script then? If that's the case that could well be the problem but I'll paste my entire script here aswell.
0 Comments
Leave a Reply. |