var beginNodeMove: SimpleSignalEmitted at the beginning of a GraphElement’s movement.
var connectionDragEnded: SimpleSignalEmitted at the end of a connection drag.
var connectionDragStarted: Signal5Emitted at the beginning of a connection drag.
var connectionFromEmpty: Signal4Emitted when user drags a connection from an input port into the empty space of the graph.
var connectionLinesAntialiased: BoolIf true, the lines between nodes will use antialiasing.
var connectionLinesCurvature: DoubleThe curvature of the lines between the nodes. 0 results in straight lines.
var connectionLinesThickness: DoubleThe thickness of the lines between the nodes.
var connectionRequest: Signal1Emitted to the GraphEdit when the connection between the fromPort of the fromNode GraphNode and the toPort of the toNode GraphNode is attempted to be created.
var connectionToEmpty: Signal3Emitted when user drags a connection from an output port into the empty space of the graph.
var copyNodesRequest: SimpleSignalEmitted when this GraphEdit captures a ui_copy action ([kbd]Ctrl + C[/kbd] by default). In general, this signal indicates that the selected GraphElements should be copied.
var deleteNodesRequest: Signal6Emitted when this GraphEdit captures a ui_graph_delete action ([kbd]Delete[/kbd] by default).
var disconnectionRequest: Signal2Emitted to the GraphEdit when the connection between fromPort of fromNode GraphNode and toPort of toNode GraphNode is attempted to be removed.
var duplicateNodesRequest: SimpleSignalEmitted when this GraphEdit captures a ui_graph_duplicate action ([kbd]Ctrl + D[/kbd] by default). In general, this signal indicates that the selected GraphElements should be duplicated.
var endNodeMove: SimpleSignalEmitted at the end of a GraphElement’s movement.
var frameRectChanged: Signal9Emitted when the GraphFrame frame is resized to newRect.
var graphElementsLinkedToFrameRequest: Signal11Emitted when one or more GraphElements are dropped onto the GraphFrame named frame, when they were not previously attached to any other one.
var gridPattern: GraphEdit.GridPatternThe pattern used for drawing the grid.
var minimapEnabled: BoolIf true, the minimap is visible.
var minimapOpacity: DoubleThe opacity of the minimap rectangle.
var minimapSize: Vector2The size of the minimap rectangle. The map itself is based on the size of the grid area and is scaled to fit this rectangle.
var nodeDeselected: Signal8Emitted when the given GraphElement node is deselected.
var nodeSelected: Signal7Emitted when the given GraphElement node is selected.
var panningScheme: GraphEdit.PanningSchemeDefines the control scheme for panning with mouse wheel.
var pasteNodesRequest: SimpleSignalEmitted when this GraphEdit captures a ui_paste action ([kbd]Ctrl + V[/kbd] by default). In general, this signal indicates that previously copied GraphElements should be pasted.
var rightDisconnects: BoolIf true, enables disconnection of existing connections in the GraphEdit by dragging the right end.
var scrollOffset: Vector2The scroll offset.
var scrollOffsetChanged: Signal12Emitted when the scroll offset is changed by the user. It will not be emitted when changed in code.
var showArrangeButton: BoolIf true, the button to automatically arrange graph nodes is visible.
var showGrid: BoolIf true, the grid is visible.
var showGridButtons: BoolIf true, buttons that allow to configure grid and snapping options are visible.
var showMinimapButton: BoolIf true, the button to toggle the minimap is visible.
var showZoomButtons: BoolIf true, buttons that allow to change and reset the zoom level are visible.
var showZoomLabel: BoolIf true, the label with the current zoom level is visible. The zoom level is displayed in percents.
var snappingDistance: Int32The snapping distance in pixels, also determines the grid line distance.
var snappingEnabled: BoolIf true, enables snapping.
var zoom: DoubleThe current zoom value.
var zoomMax: DoubleThe upper zoom limit.
var zoomMin: DoubleThe lower zoom limit.
var zoomStep: DoubleThe step of each zoom level.
func addValidConnectionType(fromType: Int32, toType: Int32)Allows the connection between two different port types. The port type is defined individually for the left and the right port of each slot with the setSlot(slotIndex:enableLeftPort:typeLeft:colorLeft:enableRightPort:typeRight:colorRight:customIconLeft:customIconRight:drawStylebox:) method.
func addValidLeftDisconnectType(Int32)Allows to disconnect nodes when dragging from the left port of the GraphNode’s slot if it has the specified type. See also removeValidLeftDisconnectType(_:).
func addValidRightDisconnectType(Int32)Allows to disconnect nodes when dragging from the right port of the GraphNode’s slot if it has the specified type. See also removeValidRightDisconnectType(_:).
func arrangeNodes()Rearranges selected nodes in a layout with minimum crossings between connections and uniform horizontal and vertical gap between nodes.
func attachGraphElementToFrame(element: StringName, frame: StringName)Attaches the element GraphElement to the frame GraphFrame.
func clearConnections()Removes all connections between nodes.
func connectNode(fromNode: StringName, fromPort: Int32, toNode: StringName, toPort: Int32) -> GodotErrorCreate a connection between the fromPort of the fromNode GraphNode and the toPort of the toNode GraphNode. If the connection already exists, no connection is created.
func detachGraphElementFromFrame(element: StringName)Detaches the element GraphElement from the GraphFrame it is currently attached to.
func disconnectNode(fromNode: StringName, fromPort: Int32, toNode: StringName, toPort: Int32)Removes the connection between the fromPort of the fromNode GraphNode and the toPort of the toNode GraphNode. If the connection does not exist, no connection is removed.
func forceConnectionDragEnd()Ends the creation of the current connection. In other words, if you are dragging a connection you can use this method to abort the process and remove the line that followed your cursor.
func getAttachedNodesOfFrame(StringName) -> VariantCollection<StringName>Returns an array of node names that are attached to the GraphFrame with the given name.
func getClosestConnectionAtPoint(Vector2, maxDistance: Double) -> GDictionaryReturns the closest connection to the given point in screen space. If no connection is found within maxDistance pixels, an empty GDictionary is returned.
func getConnectionLine(fromNode: Vector2, toNode: Vector2) -> PackedVector2ArrayReturns the points which would make up a connection between fromNode and toNode.
func getConnectionList() -> VariantCollection<GDictionary>Returns an GArray containing the list of connections. A connection consists in a structure of the form { from_port: 0, from_node: "GraphNode name 0", to_port: 1, to_node: "GraphNode name 1" }.
func getConnectionsIntersectingWithRect(Rect2) -> VariantCollection<GDictionary>Returns an GArray containing the list of connections that intersect with the given Rect2. A connection consists in a structure of the form { from_port: 0, from_node: "GraphNode name 0", to_port: 1, to_node: "GraphNode name 1" }.
func getElementFrame(element: StringName) -> GraphFrame?Returns the GraphFrame that contains the GraphElement with the given name.
func isNodeConnected(fromNode: StringName, fromPort: Int32, toNode: StringName, toPort: Int32) -> BoolReturns true if the fromPort of the fromNode GraphNode is connected to the toPort of the toNode GraphNode.
func isValidConnectionType(fromType: Int32, toType: Int32) -> BoolReturns whether it’s possible to make a connection between two different port types. The port type is defined individually for the left and the right port of each slot with the setSlot(slotIndex:enableLeftPort:typeLeft:colorLeft:enableRightPort:typeRight:colorRight:customIconLeft:customIconRight:drawStylebox:) method.
func removeValidConnectionType(fromType: Int32, toType: Int32)Disallows the connection between two different port types previously allowed by addValidConnectionType(fromType:toType:). The port type is defined individually for the left and the right port of each slot with the setSlot(slotIndex:enableLeftPort:typeLeft:colorLeft:enableRightPort:typeRight:colorRight:customIconLeft:customIconRight:drawStylebox:) method.
func removeValidLeftDisconnectType(Int32)Disallows to disconnect nodes when dragging from the left port of the GraphNode’s slot if it has the specified type. Use this to disable disconnection previously allowed with addValidLeftDisconnectType(_:).
func removeValidRightDisconnectType(Int32)Disallows to disconnect nodes when dragging from the right port of the GraphNode’s slot if it has the specified type. Use this to disable disconnection previously allowed with addValidRightDisconnectType(_:).
func setConnectionActivity(fromNode: StringName, fromPort: Int32, toNode: StringName, toPort: Int32, amount: Double)Sets the coloration of the connection between fromNode’s fromPort and toNode’s toPort with the color provided in the [theme_item activity] theme property. The color is linearly interpolated between the connection color and the activity color using amount as weight.
func setSelected(node: Node?)Sets the specified node as the one selected.