Navigation
API > API/Editor > API/Editor/UnrealEd
Helper structure used for inserting FChange based undo/redo operations inside of the GUndo (ITransaction) instance. The operations are targeted a specific UObject, which is used as the 'transactional' object. The transactions themselves are initiated using the ITransactor API using GEngine as the instance.
| Name | FChangeTransactor |
| Type | struct |
| Header File | /Engine/Source/Editor/UnrealEd/Public/ChangeTransactor.h |
| Include Path | #include "ChangeTransactor.h" |
Syntax
struct FChangeTransactor
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ChangeTransactor.h | |||
FChangeTransactor
(
UObject* InTransactionObject |
ChangeTransactor.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FChangeTransactor() |
ChangeTransactor.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CompoundChangeData | TUniquePtr< FCompoundChangeInput > | ChangeTransactor.h | ||
| PendingTransactionIndex | int32 | Pending transaction index and compound change object | ChangeTransactor.h | |
| TransactedChanges | int32 | Number of non-FSwapChange based changes which have been transacted | ChangeTransactor.h | |
| TransactionObject | TWeakObjectPtr< UObject > | Weak reference to the target object | ChangeTransactor.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddTransactionChange
(
TArgs&&... Args |
Inserts a FChange instance into the compound change data | ChangeTransactor.h | |
void CloseTransaction() |
Closes the currently pending transaction, inserting a FCompoundChange object, containing any FChange's transacted during the transaction, into GUndo alongside of the currently targeted UObject instance | ChangeTransactor.h | |
bool IsTransactionPending() |
ChangeTransactor.h | ||
void OpenTransaction
(
const FText& TransactionDescription |
Opens a new transaction with the provided description | ChangeTransactor.h | |
void SetTransactionObject
(
UObject* InTransactionObject |
Set the UObject instance for which to transact FChange's | ChangeTransactor.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CanTransactChanges() |
ChangeTransactor.h |