LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

MsgType.Disconnect

public static short Disconnect;

Description

Internal networking system message for communicating a disconnect has occurred.

To help understand the reason for a disconnect, an IntegerMessage number is written to the message body, which can be read and converted to the error enum.