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.SendBytes

public bool SendBytes(byte[] bytes, int numBytes, int channelId);

Parameters

bytesThe array of data to be sent.
numBytesThe number of bytes in the array to be sent.
channelIdThe transport channel to send on.

Returns

bool Success if data was sent.

Description

This sends an array of bytes on the connection.