csharp
public sealed class AddNodeCommandPutting one node into a graph.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (2)
public override string NameWhat this is called in the undo history, as a person would say it.
public GraphNode NodeThe node, once it has been added.
Methods (3)
public AddNodeCommand(NodeGraphModel graph, string type, Vector2 position, EditorDocument? document = null)Describes adding a node.
protected override void Apply()Makes the change. Called once on execute and again on every redo.
protected override void Revert()Puts back exactly what Apply changed.
Used by (2)
- CommandTestsVixen.Editor.NodeGraph.Tests
- NodeGraphViewVixen.Editor.NodeGraph