csharp
public interface IAuthoringCommandOne reversible change, in a form that needs no editor to run.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The editor's IEditorCommand is this with a richer context. A command that only ever touches a document implements this directly, which is what lets a headless host run the same graph and layer edits the editor's undo stack runs.
Fields and properties (1)
string NameWhat this is called in the undo history, as a person would say it.
Methods (3)
void Do(ICommandContext context)Applies the change. Called on execute and again on every redo.
void Undo(ICommandContext context)Puts back exactly what Do changed.
bool TryMergeWith(IAuthoringCommand previous, out IAuthoringCommand? merged)Absorbs the entry below this one, so that the two become one undo step.
Used by (24)
- CommandStackVixen.Editor.Core
- CompositeCommandVixen.Editor.Core
- EditRecordTestsVixen.Editor.Core.Tests
- EntityGizmoTargetVixen.Editor.SceneView
- GizmoRecordTestsVixen.Editor.SceneView.Tests
- GizmoTransformMemberVixen.Editor.SceneView
- IEditMemberVixen.Editor.Core
- IEditorCommandVixen.Editor.Core
- InspectorMemberVixen.Editor.Inspector
- InspectorMemberVixen.Editor.Inspector
- ListElementMemberVixen.Editor.Inspector
- MemberVixen.Editor.Core.Tests
- MoveNodesCommandVixen.NodeGraph
- NodeGraphCommandVixen.NodeGraph
- NodeGraphViewVixen.Editor.NodeGraph
- NodePortMemberVixen.Editor.NodeGraph
- NodePortProviderTestsVixen.Editor.NodeGraph.Tests
- NodeSettingMemberVixen.Editor.NodeGraph
- OneEditPathTestsVixen.Editor.App.Tests
- ReflectedMemberVixen.Editor.Inspector
- SetPortTextCommandVixen.NodeGraph
- SetPortValueCommandVixen.NodeGraph
- TestMemberVixen.Editor.Core.Tests
- UndoHistoryVixen.Editor.App