Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

NetworkManager.OnServerRemovePlayer(NetworkConnection,UPlayer)

Switch to Manual

Parameters

conn Connection from client.
player The UPlayer object for the player being removed.

Description

Called on the server when a client removes a player.

The default implementation destroys the player's gameObject.