Language:
Discover
By Skill Level
By Category

ITransaction

Choose your OS:

Inheritance Hierarchy

ITransaction

FTransaction

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

Name Description

Public function

void

 

Apply()

Applies the transaction.

Public function

void

 

BeginOperation()

BeginOperation should be called when a transaction or undo/redo starts

Public function

bool

 

ContainsPieObjects()

If this transaction tracks PIE objects

Public function

void

 

EndOperation()

EndOperation should be called when a transaction is finalized or canceled or undo/redo ends

Public function

void

 

Finalize()

Called when this transaction is completed to finalize the transaction

Public function

FTransaction ...

 

GetContext()

Gets the full context for the transaction

Public function

void

 

SaveArray

(
    UObject * Object,
    FScriptArray * Array,
    int32 Index,
    int32 Count,
    int32 Oper,
    int32 ElementSize,
    STRUCT_DC DefaultConstructor,
    STRUCT_AR Serializer,
    STRUCT_DTOR Destructor
)

Saves an array to the transaction.

Public function

void

 

SaveObject

(
    UObject * Object
)

Saves an UObject to the transaction.

Public function

void

 

SetPrimaryObject

(
    UObject * Object
)

Sets the transaction's primary object.

Public function

void

 

SnapshotObject

(
    UObject * Object
)

Snapshots a UObject within the transaction.

Public function

void

 

StoreUndo

(
    UObject * Object,
    TUniquePtr < FChange > CustomChange
)

Stores a command that can be used to undo a change to the specified object.

References

Module

Core

Header

Runtime/Core/Public/Misc/ITransaction.h