csharp
public sealed class DelegateCommandA command written as two lambdas.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
For the one-off operation that does not deserve a type — and it never merges, because two closures have no way to know whether they are the same edit twice.
Fields and properties (1)
public string NameWhat this is called in the undo history, as a person would say it.
Methods (3)
public DelegateCommand(string name, Action<EditorContext> apply, Action<EditorContext> revert)Makes a command out of what it does and how to take it back.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
Used by (15)
- AnimationClipDocumentVixen.Editor.AssetEditors
- AnimationGraphDocumentVixen.Editor.AssetEditors
- AudioMixerDocumentVixen.Editor.AssetEditors
- CommandStackTestsVixen.Editor.Core.Tests
- EditorApplicationVixen.Editor.App
- EditorDocumentTestsVixen.Editor.Core.Tests
- FontDocumentVixen.Editor.AssetEditors
- HarnessDocumentVixen.Editor.AssetEditors
- InputActionsDocumentVixen.Editor.AssetEditors
- ListElementMemberVixen.Editor.Inspector
- MoveSetDocumentVixen.Editor.AssetEditors
- ProxyShapeDocumentVixen.Editor.AssetEditors
- ReflectedMemberVixen.Editor.Inspector
- SequenceDocumentVixen.Editor.AssetEditors
- ShapeVocabularyDocumentVixen.Editor.AssetEditors