Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question 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:
    2,971
    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...