csharp
public sealed class AddCommentCommandAdding a sticky note.
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 GraphComment CommentThe note, which is the same object on every redo.
Methods (3)
public AddCommentCommand(NodeGraphModel graph, string text, Vector2 position, EditorDocument? document = null)Describes adding a note.
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