Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkView.observed

Switch to Manual
public 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 : NetworkViewID[]) { for (var ID : NetworkViewID in viewIDs) { Debug.Log("Finding " + ID); var view : NetworkView = NetworkView.Find(ID); Debug.Log(view.observed.name); } }