Vixen
02b45cc4
csharp
public sealed class CommandTransaction

Several commands being built into one undo entry.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Opened by BeginTransaction and committed by disposing it, so the shape at the call site is a block and forgetting to close one is not a failure mode.

Distinct from merging. Merging is two commands discovering afterwards that they were one edit; a transaction is a caller saying up front that everything inside it is.

Methods (3)

  • public void Commit()

    Records everything collected as one entry.

  • public void Cancel()

    Rolls back everything collected and records nothing.

  • public void Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Used by (5)

  • CommandStackVixen.Editor.Core
  • CommandStackTestsVixen.Editor.Core.Tests
  • EditPropertyVixen.Editor.Core
  • EditTargetVixen.Editor.Core
  • InspectorFieldVixen.Editor.Inspector