FChangeTransactor

Helper structure used for inserting [FChange](API\Runtime\Core\Misc\FChange) based undo/redo operations inside of the GUndo ([ITransaction](API\Runtime\Core\Misc\ITransaction)) instance.

Choose your operating system:

Windows

macOS

Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/ChangeTransactor.h

Include

#include "ChangeTransactor.h"

Syntax

struct FChangeTransactor

Remarks

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.

Constructors

Name Description

Public function

FChangeTransactor()

Public function

FChangeTransactor

(
    UObject* InTransactionObject
)

Destructors

Name Description

Public function

~FChangeTransactor()

Functions

Name Description

Public function

void

 

AddTransactionChange

(
    TArgs&&... Args
)

Inserts a FChange instance into the compound change data

Public function

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

Public function

bool

 

IsTransactionPending()

Public function

void

 

OpenTransaction

(
    const FText& TransactionDescriptio...
)

Opens a new transaction with the provided description

Public function

void

 

SetTransactionObject

(
    UObject* InTransactionObject
)

Set the UObject instance for which to transact FChange's