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

protected void HandleBytes(byte[] buffer, int receivedSize, int channelId);

Parameters

bufferData to process.
receivedSizeSize of the data to process.
channelIdChannel the data was recieved on.

Description

This makes the connection process the data contained in the buffer, and call handler functions.

The data is assumed to have come from the network, and contains network messages.

This function is used by network connections when they receive data.