Class DuplicateNode
Represents a node editor command that can be used to duplicate a node.
public class DuplicateNode : INodeEditorCommand, IDisposable
- Inheritance
-
objectDuplicateNode
- Implements
Constructors
DuplicateNode(INodeScript, INode, bool, INodeService)
Creates a new instance of the DeleteNode class.
public DuplicateNode(INodeScript nodeScript, INode node, bool copyIncomingConnections, INodeService nodeService)
Parameters
nodeScriptINodeScriptThe node script the node belongs to.
nodeINodeThe node to delete.
copyIncomingConnectionsboolA boolean indicating whether incoming connections should be copied.
nodeServiceINodeServiceThe service to use to duplicate the node.
Properties
DisplayName
Gets the name of the command
public string DisplayName { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Execute()
Executes the command
public void Execute()
Undo()
Undoes the command
public void Undo()