Click or drag to resize

NodeSetNetworkMaster Method

Sets the node's network master to the peer with the given peer ID. The network master is the peer that has authority over the node on the network. Useful in conjunction with the master and puppet keywords. Inherited from the parent node by default, which ultimately defaults to peer ID 1 (the server). If recursive, the given peer is recursively set as the master for all children of this node.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetNetworkMaster(
	int id,
	bool recursive = true
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.Node.SetNetworkMaster(System.Int32,System.Boolean)"]

recursive (Optional)
Type: SystemBoolean

[Missing <param name="recursive"/> documentation for "M:Godot.Node.SetNetworkMaster(System.Int32,System.Boolean)"]

See Also