Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkView.group

Switch to Manual
public var group: int;

Description

The network group number of this network view.

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

function Awake() {
	// Send everything from this network view through group 1.
	GetComponent.<NetworkView>().group = 1;
}