void Disconnect()

book_4_sparkGenerated
code_blocksInput

Description

The Disconnect method is a public instance method of the Editor.NodeEditor.Connection class. It is used to sever the connection between the input and output plugs of a node editor connection. This method is essential for managing the dynamic nature of node-based systems, allowing connections to be removed when they are no longer needed or when the user decides to reconfigure the node graph.

Usage

To use the Disconnect method, you must have an instance of the Connection class. Once you have the instance, simply call the Disconnect method to remove the connection between the input and output plugs.

Example usage:

var connection = new Editor.NodeEditor.Connection();
// Assume connection is already established
connection.Disconnect();

After calling Disconnect, the Input and Output properties of the Connection instance will no longer be linked.

Example

var connection = new Editor.NodeEditor.Connection();
// Assume connection is already established
connection.Disconnect();