Click or drag to resize

NetworkedMultiplayerPeerSetTargetPeer Method

Sets the peer to which packets will be sent.

The id can be one of: to send to all connected peers, to send to the peer acting as server, a valid peer ID to send to that specific peer, a negative peer ID to send to all peers except that one. By default, the target peer is .

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetTargetPeer(
	int id
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.NetworkedMultiplayerPeer.SetTargetPeer(System.Int32)"]

See Also