Click or drag to resize

GraphEditConnectNode Method

Create a connection between the from_port slot of the from GraphNode and the to_port slot of the to GraphNode. If the connection already exists, no connection is created.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error ConnectNode(
	string from,
	int fromPort,
	string to,
	int toPort
)

Parameters

from
Type: SystemString

[Missing <param name="from"/> documentation for "M:Godot.GraphEdit.ConnectNode(System.String,System.Int32,System.String,System.Int32)"]

fromPort
Type: SystemInt32

[Missing <param name="fromPort"/> documentation for "M:Godot.GraphEdit.ConnectNode(System.String,System.Int32,System.String,System.Int32)"]

to
Type: SystemString

[Missing <param name="to"/> documentation for "M:Godot.GraphEdit.ConnectNode(System.String,System.Int32,System.String,System.Int32)"]

toPort
Type: SystemInt32

[Missing <param name="toPort"/> documentation for "M:Godot.GraphEdit.ConnectNode(System.String,System.Int32,System.String,System.Int32)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.GraphEdit.ConnectNode(System.String,System.Int32,System.String,System.Int32)"]

See Also