Description
The CopySelection
method is a public instance method of the GraphView
class within the Editor.NodeEditor
namespace. This method is used to copy the currently selected nodes or elements within the graph view to the clipboard. It does not take any parameters and does not return a value.
Usage
To use the CopySelection
method, ensure that you have a valid instance of GraphView
. Call the method on this instance to copy the selected elements. This is typically used in scenarios where you want to duplicate or move elements within a node-based editor.
Example
// Assuming 'graphView' is an instance of Editor.NodeEditor.GraphView
// Copy the current selection to the clipboard
graphView.CopySelection();