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

var viewID : NetworkViewID

Description

The ViewID of this network view.

function OnNetworkInstantiate (info : NetworkMessageInfo) {
var networkViews = GetComponents(NetworkView);
Debug.Log("New prefab network instantiated with views - ");
for (var view : NetworkView in networkViews)
Debug.Log("- " + view.viewID);
}