Enum PayloadDecodeError

Namespace
Unity.Multiplayer.Core

Why bytes did not decode as a ConnectionPayload.

public enum PayloadDecodeError

Fields

BadMagic = 3

The first two bytes are not the payload magic: not a MindAttic connection request.

Empty = 1

No bytes at all (a client that sent no connection data).

InvalidField = 8

Every field decoded but one fails Validate().

InvalidText = 7

A string field is not valid UTF-8.

None = 0

It decoded.

TooLarge = 2

More than MaxEncodedLength bytes.

TrailingBytes = 6

Bytes remain after the last field.

Truncated = 5

The bytes end before the last field.

UnsupportedFormatVersion = 4

A format version this build cannot read (newer, or zero). GameVersion still holds the sender's game version when it could be read, since every format starts with it.