Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
Inheritance Hierarchy
- ITransaction
- FTransaction
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/ITransaction.h |
Include | #include "Misc/ITransaction.h" |
Syntax
class ITransaction
Remarks
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.
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Apply () |
Applies the transaction. |
![]() |
void | BeginOperation should be called when a transaction or undo/redo starts | |
![]() ![]() |
bool | ContainsObject
(
const UObject* Object |
Does the transaction know that the object is being modified. |
![]() ![]() |
bool | ||
![]() |
void | EndOperation () |
EndOperation should be called when a transaction is finalized or canceled or undo/redo ends |
![]() |
void | Finalize () |
Called when this transaction is completed to finalize the transaction |
![]() ![]() |
FTransactionContext | GetContext () |
Gets the full context for the transaction |
![]() ![]() |
bool | IsTransient () |
Report if a transaction should be put in the undo buffer. |
![]() |
void | SaveArray
(
UObject* Object, |
Saves an array to the transaction. |
![]() |
void | SaveObject
(
UObject* Object |
Saves an UObject to the transaction. |
![]() |
void | SetPrimaryObject
(
UObject* Object |
Sets the transaction's primary object. |
![]() |
void | SnapshotObject
(
UObject* Object, |
Snapshots a UObject within the transaction. |
![]() |
void | StoreUndo
(
UObject* Object, |
Stores a command that can be used to undo a change to the specified object. |