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.isMine

Switch to Manual
public var isMine: bool;

Description

Is the network view controlled by this object?

	function OnNetworkInstantiate (info : NetworkMessageInfo) {
		if (networkView.isMine)
			Debug.Log("New object instanted by me");
		else
			Debug.Log("New object instantiated by " + info.sender);
	}