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.

NetworkMessage.MaxMessageSize

public static int MaxMessageSize;

Description

The size of the largest message in bytes that can be sent on a NetworkConnection.

Note that channels that are not Fragmented cannot send messages larger than the Maximum Transmission Unity (MTU) size, which is about 1400 bytes by default.