Navigation
API > API/Runtime > API/Runtime/Core
Interface for transactions.
Transactions are created each time an UObject is modified, for example in the Editor. The data stored inside a transaction object can then be used to provide undo/redo functionality.
| Name | ITransaction |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/ITransaction.h |
| Include Path | #include "Misc/ITransaction.h" |
Syntax
class ITransaction
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Apply() |
Applies the transaction. | Misc/ITransaction.h | |
void BeginOperation() |
BeginOperation should be called when a transaction or undo/redo starts | Misc/ITransaction.h | |
bool ContainsObject
(
const UObject* Object |
Does the transaction know that the object is being modified. | Misc/ITransaction.h | |
bool ContainsPieObjects() |
Misc/ITransaction.h | ||
void EndOperation() |
EndOperation should be called when a transaction is finalized or canceled or undo/redo ends | Misc/ITransaction.h | |
void Finalize() |
Called when this transaction is completed to finalize the transaction | Misc/ITransaction.h | |
FTransactionContext GetContext() |
Gets the full context for the transaction | Misc/ITransaction.h | |
bool IsTransient () |
Report if a transaction should be put in the undo buffer. | Misc/ITransaction.h | |
void SaveArray
(
UObject* Object, |
Saves an array to the transaction. | Misc/ITransaction.h | |
void SaveObject
(
UObject* Object |
Saves an UObject to the transaction. | Misc/ITransaction.h | |
void SetPrimaryObject
(
UObject* Object |
Sets the transaction's primary object. | Misc/ITransaction.h | |
void SnapshotObject
(
UObject* Object, |
Snapshots a UObject within the transaction. | Misc/ITransaction.h | |
void StoreUndo
(
UObject* Object, |
Stores a command that can be used to undo a change to the specified object. | Misc/ITransaction.h |