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.

NetworkReader.ReadBytes

public byte[] ReadBytes(int count);

Parameters

countNumber of bytes to read.

Returns

byte[] Bytes read. (this is a copy).

Description

Reads a number of bytes from the stream.

See NetworkReader for a code example.