void ClearSelection()

book_4_sparkGenerated
code_blocksInput

Description

The ClearSelection method is a public instance method of the GraphView class within the Editor.NodeEditor namespace. This method is used to clear the current selection of nodes or elements within the graph view. It effectively deselects any currently selected nodes, allowing the user to start a new selection or leave the graph view with no selected elements.

Usage

To use the ClearSelection method, you need to have an instance of the GraphView class. Once you have this instance, you can call the method directly to clear any selections in the graph view.

Example

// Assuming 'graphView' is an instance of GraphView

graphView.ClearSelection();

// After calling this method, no nodes or elements will be selected in the graph view.