NetworkingPeer.OpCleanRpcBuffer C# (CSharp) Method

OpCleanRpcBuffer() public method

Cleans server RPCs for PhotonView (without any further checks).
public OpCleanRpcBuffer ( PhotonView, view ) : void
view PhotonView,
return void
    public void OpCleanRpcBuffer(PhotonView view)
    {
        Hashtable rpcFilterByViewId = new Hashtable();
        rpcFilterByViewId[(byte)0] = view.viewID;

        RaiseEventOptions options = new RaiseEventOptions() { CachingOption = EventCaching.RemoveFromRoomCache };
        this.OpRaiseEvent(PunEvent.RPC, rpcFilterByViewId, true, options);
        //this.OpRaiseEvent(PunEvent.RPC, rpcFilterByViewId, true, 0, EventCaching.RemoveFromRoomCache, ReceiverGroup.Others);
    }

Same methods

NetworkingPeer::OpCleanRpcBuffer ( int actorNumber ) : void

Usage Example

Exemplo n.º 1
0
 public static void RemoveRPCs(PhotonPlayer targetPlayer)
 {
     if (!VerifyCanUseNetwork())
     {
         return;
     }
     if (!targetPlayer.IsLocal && !IsMasterClient)
     {
         Debug.LogError("Error; Only the MasterClient can call RemoveRPCs for other players.");
         return;
     }
     networkingPeer.OpCleanRpcBuffer(targetPlayer.ID);
 }
All Usage Examples Of NetworkingPeer::OpCleanRpcBuffer
NetworkingPeer