This version of Unity is unsupported.
Method group is Obsolete

NetworkWriter.ToArray

Obsolete The high level API classes are deprecated and will be removed in the future.

Declaration

public byte[] ToArray();

Returns

byte[] Copy of data used by the writer.

Description

Returns a copy of internal array of bytes the writer is using, it copies only the bytes used.

See NetworkWriting for a code example.