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

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);
}