Search Unity

Third Party PHOTON: is there a way to CLEAR the RPC buffer?

Discussion in 'Multiplayer' started by Peteroid69, Feb 10, 2022.

  1. Peteroid69

    Peteroid69

    Joined:
    Nov 11, 2018
    Posts:
    36
    that is... clear the RPC's in the buffer which currently exist... so no player who enters the Room from then on gets the buffered RPC's?
    .
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,070
    As far as I can see, PhotonNetwork.RemoveBufferedRPCs() should help. Leave all parameters as default and all RPCs should get removed.
     
  3. Peteroid69

    Peteroid69

    Joined:
    Nov 11, 2018
    Posts:
    36
    cool... thanks!...i will check this out...