The DeleteNode
method is a public instance method of the GraphView
class within the Editor.NodeEditor
namespace. This method is used to remove a specified node from the graph view.
The DeleteNode
method is a public instance method of the GraphView
class within the Editor.NodeEditor
namespace. This method is used to remove a specified node from the graph view.
To use the DeleteNode
method, you need to have an instance of GraphView
and a reference to the NodeUI
object that you wish to delete. Call the method with the node as the parameter.
// Assuming 'graphView' is an instance of GraphView and 'nodeToDelete' is a NodeUI object // Delete the specified node from the graph view graphView.DeleteNode(nodeToDelete);