Called on objects which have been network instantiated with Network.Instantiate.
function OnNetworkInstantiate (info : NetworkMessageInfo) { Debug.Log("New object instantiated by " + info.sender); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void OnNetworkInstantiate(NetworkMessageInfo info) { Debug.Log("New object instantiated by " + info.sender); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def OnNetworkInstantiate(info as NetworkMessageInfo) as void: Debug.Log(('New object instantiated by ' + info.sender))