Click or drag to resize

GraphNodeSetSlot Method

Sets properties of the slot with ID idx.

If enable_left/right, a port will appear and the slot will be able to be connected from this side.

type_left/right is an arbitrary type of the port. Only ports with the same type values can be connected.

color_left/right is the tint of the port's icon on this side.

custom_left/right is a custom texture for this side's port.

Note: This method only sets properties of the slot. To create the slot, add a Control-derived child to the GraphNode.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetSlot(
	int idx,
	bool enableLeft,
	int typeLeft,
	Color colorLeft,
	bool enableRight,
	int typeRight,
	Color colorRight,
	Texture customLeft = null,
	Texture customRight = null
)

Parameters

idx
Type: SystemInt32

[Missing <param name="idx"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

enableLeft
Type: SystemBoolean

[Missing <param name="enableLeft"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

typeLeft
Type: SystemInt32

[Missing <param name="typeLeft"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

colorLeft
Type: GodotColor

[Missing <param name="colorLeft"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

enableRight
Type: SystemBoolean

[Missing <param name="enableRight"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

typeRight
Type: SystemInt32

[Missing <param name="typeRight"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

colorRight
Type: GodotColor

[Missing <param name="colorRight"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

customLeft (Optional)
Type: GodotTexture

[Missing <param name="customLeft"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

customRight (Optional)
Type: GodotTexture

[Missing <param name="customRight"/> documentation for "M:Godot.GraphNode.SetSlot(System.Int32,System.Boolean,System.Int32,Godot.Color,System.Boolean,System.Int32,Godot.Color,Godot.Texture,Godot.Texture)"]

See Also