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

var observed : Component

Description

The component the network view is observing.

// Print the names of the objects which have the view IDs given in the array
function PrintNames(viewIDs : Array) {
for (var ID: NetworkViewID in IDs) {
Debug.Log("Finding "+ID);
var view : NetworkView = networkView.Find(ID);
Debug.Log(view.observed.name);
}
}