The ViewID of this network view.
function OnNetworkInstantiate (info : NetworkMessageInfo) { var networkViews : NetworkView[] = GetComponents(NetworkView); Debug.Log("New prefab network instantiated with views - "); for (var view : NetworkView in networkViews) Debug.Log("- " + view.viewID); }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void OnNetworkInstantiate(NetworkMessageInfo info) { NetworkView[] networkViews = GetComponents<NetworkView>(); Debug.Log("New prefab network instantiated with views - "); foreach (NetworkView view in networkViews) { Debug.Log("- " + view.viewID); } } }