csharp
public sealed class AddTargetCommandAdding a build target to the override matrix.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Sealed, and implementing IEditorCommand itself, as the other two here are. An abstract base declaring Do would be the shorter arrangement and would put three commands' interface mapping on a type that is not the one the stack calls through — the trap NodeGraphCommand documents. Three short classes cost less than that costs.
Fields and properties (2)
public TargetOverride RowThe row it adds. Kept, so an undo and a redo restore the same object.
public string NameWhat this is called in the undo history, as a person would say it.
Methods (4)
public AddTargetCommand(ImportSettingsDocument document, string target)Describes adding a target.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
public bool TryMergeWith(IEditorCommand previous, out IEditorCommand? merged)
Used by (1)
- ImportSettingsDocumentVixen.Editor.AssetEditors