Network.OnServerInitialized Manual     Reference     Scripting  
Scripting > Runtime Classes > Network
Network.OnServerInitialized

function OnServerInitialized () : void

Description

Called on the server whenever a Network.InitializeServer was invoked and has completed.

JavaScripts
function OnServerInitialized() {
Debug.Log("Server initialized and ready");
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnServerInitialized() {
Debug.Log("Server initialized and ready");
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnServerInitialized():
Debug.Log('Server initialized and ready')