Legacy Documentation: Version 5.6 (Go to current version)
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 int group;

Description

The network group number of this network view.

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Awake() { GetComponent<NetworkView>().group = 1; } }