NetworkingPeer.ResetPhotonViewsOnSerialize C# (CSharp) Méthode

ResetPhotonViewsOnSerialize() private méthode

Resets the PhotonView "lastOnSerializeDataSent" so that "OnReliable" synched PhotonViews send a complete state to new clients (if the state doesnt change, no messages would be send otherwise!). Note that due to this reset, ALL other players will receive the full OnSerialize.
private ResetPhotonViewsOnSerialize ( ) : void
Résultat void
    private void ResetPhotonViewsOnSerialize()
    {
        foreach (PhotonView photonView in this.photonViewList.Values)
        {
            photonView.lastOnSerializeDataSent = null;
        }
    }
NetworkingPeer