Table of Contents

Enum MultiplayerPeer.TransferModeEnum

Namespace
Godot
Assembly
GodotSharp.dll
public enum MultiplayerPeer.TransferModeEnum : long

Fields

Reliable = 2

Packets must be received and resend attempts should be made until the packets are acknowledged. Packets must be received in the order they were sent in. Most reliable transfer mode, but potentially the slowest due to the overhead. Use for critical data that must be transmitted and arrive in order, for example an ability being triggered or a chat message. Consider carefully if the information really is critical, and use sparingly.

Unreliable = 0

Packets are not acknowledged, no resend attempts are made for lost packets. Packets may arrive in any order. Potentially faster than UnreliableOrdered. Use for non-critical data, and always consider whether the order matters.

UnreliableOrdered = 1

Packets are not acknowledged, no resend attempts are made for lost packets. Packets are received in the order they were sent in. Potentially faster than Reliable. Use for non-critical data or data that would be outdated if received late due to resend attempt(s) anyway, for example movement and positional data.