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.

NetworkConnection.Send

public bool Send(short msgType, Networking.MessageBase msg);

Parameters

msgTypeThe ID of the message to send.
msgThe message to send.

Returns

bool True if the message was sent.

Description

This sends a network message with a message ID on the connection. This message is sent on channel zero, which by default is the reliable channel.