Enable or disables the reception of messages in a specific group number from a specific player.
// Stop receiving messages in group 0 from all players (clients) for (var player : NetworkPlayer in Network.connections) Network.SetReceivingEnabled(player, 0, false);
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { foreach (NetworkPlayer player in Network.connections) { Network.SetReceivingEnabled(player, 0, false); } } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: for player as NetworkPlayer in Network.connections: Network.SetReceivingEnabled(player, 0, false)