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
public void SetSlot( int idx, bool enableLeft, int typeLeft, Color colorLeft, bool enableRight, int typeRight, Color colorRight, Texture customLeft = null, Texture customRight = null )
[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)"]
[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)"]
[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)"]
[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)"]
[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)"]
[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)"]
[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)"]
[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)"]
[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)"]