Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

MonoBehaviour.OnServerInitialized()

Description

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

using UnityEngine;
using System.Collections;

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

Did you find this page useful? Please give it a rating: