Version: 5.4
public NetworkViewID viewID ;

説明

この Network ビューの 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); } } }