Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UTransactor
Description
Begins a new undo transaction. An undo transaction is defined as all actions which take place when the user selects "undo" a single time. If there is already an active transaction in progress, increments that transaction's action counter instead of beginning a new transaction.
Derived Overrides
| Name | Begin |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/Transactor.h |
| Include Path | #include "Editor/Transactor.h" |
virtual int32 Begin
(
const TCHAR * SessionContext,
const FText & Description
)
Number of active actions when Begin() was called; values greater than 0 indicate that there was already an existing undo transaction in progress.
Parameters
| Name | Remarks |
|---|---|
| SessionContext | the context for the undo session; typically the tool/editor that cause the undo operation |
| Description | the description for the undo session; this is the text that will appear in the "Edit" menu next to the Undo item |