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

Script language

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

NetworkManager.OnClientConnect

public void OnClientConnect(Networking.NetworkConnection conn);

Parameters

conn Connection to the server.

Description

Called on the client when connected to a server.

The default implementation of this function sets the client as ready and adds a player.