Click or drag to resize

MultiplayerAPINetworkPeer Property

The peer object to handle the RPC system (effectively enabling networking when set). Depending on the peer itself, the MultiplayerAPI will become a network server (check with IsNetworkServer) and will set root node's network mode to master, or it will become a regular peer with root node set to puppet. All child nodes are set to inherit the network mode by default. Handling of networking-related events (connection, disconnection, new clients) is done by connecting to MultiplayerAPI's signals.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public NetworkedMultiplayerPeer NetworkPeer { get; set; }

Property Value

Type: NetworkedMultiplayerPeer
See Also