RemoveRPCs









How do I use Remove R P Cs
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: NetworkingPeer.cs Copy
2813     public void RemoveRPCsInGroup(int group)
2814     {
2815         foreach (KeyValuePair kvp in this.photonViewList)
2816         {
2817             PhotonView view = kvp.Value;
2818             if (view.group == group)
2819             {
2820                 this.CleanRpcBufferIfMine(view);
2821             }
2822         }
2823     }
File name: PhotonNetwork.cs Copy
2422     public static void RemoveRPCs(PhotonPlayer targetPlayer)
2423     {
2424         if (!VerifyCanUseNetwork())
2425         {
2426             return;
2427         }
2428
2429         if (!targetPlayer.isLocal && !isMasterClient)
2430         {
2431             Debug.LogError("Error; Only the MasterClient can call RemoveRPCs for other players.");
2432             return;
2433         }
2434
2435         networkingPeer.OpCleanRpcBuffer(targetPlayer.ID);
2436     }
File name: PhotonNetwork.cs Copy
2447     public static void RemoveRPCs(PhotonView targetPhotonView)
2448     {
2449         if (!VerifyCanUseNetwork())
2450         {
2451             return;
2452         }
2453
2454         networkingPeer.CleanRpcBufferIfMine(targetPhotonView);
2455     }
File name: PhotonNetwork.cs Copy
2466     public static void RemoveRPCsInGroup(int targetGroup)
2467     {
2468         if (!VerifyCanUseNetwork())
2469         {
2470             return;
2471         }
2472
2473         networkingPeer.RemoveRPCsInGroup(targetGroup);
2474     }

RemoveRPCs 146 lượt xem

Gõ tìm kiếm nhanh...