Click or drag to resize

MultiplayerAPISendBytes Method

Sends the given raw bytes to a specific peer identified by id (see SetTargetPeer(Int32)). Default ID is 0, i.e. broadcast to all peers.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error SendBytes(
	byte[] bytes,
	int id = 0,
	NetworkedMultiplayerPeerTransferModeEnum mode = NetworkedMultiplayerPeerTransferModeEnum.Reliable
)

Parameters

bytes
Type: SystemByte

[Missing <param name="bytes"/> documentation for "M:Godot.MultiplayerAPI.SendBytes(System.Byte[],System.Int32,Godot.NetworkedMultiplayerPeer.TransferModeEnum)"]

id (Optional)
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.MultiplayerAPI.SendBytes(System.Byte[],System.Int32,Godot.NetworkedMultiplayerPeer.TransferModeEnum)"]

mode (Optional)
Type: GodotNetworkedMultiplayerPeerTransferModeEnum

[Missing <param name="mode"/> documentation for "M:Godot.MultiplayerAPI.SendBytes(System.Byte[],System.Int32,Godot.NetworkedMultiplayerPeer.TransferModeEnum)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.MultiplayerAPI.SendBytes(System.Byte[],System.Int32,Godot.NetworkedMultiplayerPeer.TransferModeEnum)"]

See Also