NetworkView.group Manual     Reference     Scripting  
Scripting > Runtime Classes > NetworkView
NetworkView.group

var group : int

Description

The network group number of this network view.

All network messages and RPC calls go through this group number.

JavaScripts
function Awake() {
// Send everything from this network view through group 1
networkView.group = 1;
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
networkView.group = 1;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
networkView.group = 1