Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > Editor
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTransactor
- UTransBuffer
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Classes/Editor/TransBuffer.h |
Include | #include "Editor/TransBuffer.h" |
Syntax
class UTransBuffer : public UTransactor
Remarks
Transaction tracking system, manages the undo and redo buffer.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | ActiveCount | Number of actions in the current transaction |
![]() |
TArray< int32 > | ActiveRecordCounts | The cached count of the number of object records each time a transaction is begun |
![]() |
SIZE_T | MaxMemory | Maximum number of bytes the transaction buffer is allowed to occupy |
![]() |
FText | ResetReason | Text describing the reason that the undo buffer is empty |
![]() |
TArray< int32 > | UndoBarrierStack | Undo barrier stack |
![]() |
TArray< TSharedRef< FTransaction > > | UndoBuffer | Variables. |
![]() |
int32 | UndoCount | Number of transactions that have been undone, and are eligible to be redone |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddReferencedObjects
(
UObject* InThis, |
|
![]() |
int32 | BeginInternal
(
const TCHAR* SessionContext, |
Implementation of the begin function. Used to create a specific transaction type |
![]() ![]() |
void | CheckState () |
Validates the state of the transaction buffer. |
![]() |
void | Initialize
(
SIZE_T InMaxMemory |
Constructor. |
![]() |
UTransBuffer::FOnTransactorBeforeRedoUndo TBaseMulticastDelegate_OneParam | ||
![]() |
void | OnObjectsReinstanced
(
const TMap< UObject*, UObject* >& OldToNewInstances |
|
![]() |
UTransBuffer::FOnTransactorRedo TBaseMulticastDelegate_TwoParams | OnRedo () |
|
![]() |
UTransBuffer::FOnTransactorTransactionStateChanged TBaseMulticastDelegate_TwoParams | ||
![]() |
UTransBuffer::FOnTransactorUndo TBaseMulticastDelegate_TwoParams | OnUndo () |
|
![]() |
UTransBuffer::FOnTransactorUndoBufferChanged TBaseMulticastDelegate_NoParams |
Overridden from UTransactor
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Begins a new undo transaction. | |
![]() ![]() |
void | Cancel
(
int32 StartIndex |
Cancels the current transaction, no longer capture actions to be placed in the undo buffer. |
![]() ![]() |
bool | Determines whether the redo option should be selectable. | |
![]() ![]() |
bool | Determines whether the undo option should be selectable. | |
![]() ![]() |
void | Clears all undo barriers. | |
![]() ![]() ![]() |
bool | ||
![]() ![]() |
bool | Disables the transaction buffer from serializing the set of objects it references. | |
![]() ![]() |
bool | Enables the transaction buffer to serialize the set of objects it references. | |
![]() ![]() |
int32 | End () |
Attempts to close an undo transaction. Only successful if the transaction's action counter is 1. |
![]() ![]() ![]() |
int32 | FindTransactionIndex
(
const FGuid& TransactionId |
Gets the transaction queue index from its TransactionId. |
![]() ![]() ![]() |
int32 | Gets the current undo barrier's position in transaction queue | |
![]() ![]() ![]() |
int32 | Gets the current length of the transaction queue. | |
![]() ![]() |
FTransactionContext | Returns the description of the redo action that will be performed next. | |
![]() ![]() ![]() |
const FTransaction * | GetTransaction
(
int32 QueueIndex |
Gets the transaction at the specified queue index. |
![]() ![]() |
FTransactionContext | GetUndoContext
(
bool bCheckWhetherUndoPossible |
Returns the description of the undo action that will be performed next. |
![]() ![]() ![]() |
int32 | GetUndoCount () |
Gets the number of transactions that were undone and can be redone. |
![]() ![]() ![]() |
SIZE_T | GetUndoSize () |
Determines the amount of data currently stored by the transaction buffer. |
![]() ![]() |
bool | IsActive () |
Returns whether there are any active actions; i.e. whether actions are currently being captured into the undo buffer. |
![]() ![]() ![]() |
bool | IsObjectInTransactionBuffer
(
const UObject* Object |
Checks if a specific object is referenced by the transaction buffer |
![]() ![]() |
bool | Wrapper for checking if the transaction buffer is allowed to serialize object references. | |
![]() ![]() ![]() |
bool | IsObjectTransacting
(
const UObject* Object |
Checks if a specific object is in the transaction currently underway |
![]() ![]() |
bool | Redo () |
Executes an redo transaction, redoing all actions contained by that transaction. |
![]() ![]() |
void | Removes the last set undo barrier from the transaction buffer. | |
![]() ![]() |
void | Resets the entire undo buffer; deletes all undo transactions. | |
![]() ![]() |
void | SetPrimaryUndoObject
(
UObject* Object |
Set passed object as the primary context object for transactions |
![]() ![]() |
void | Sets an undo barrier at the current point in the transaction buffer. | |
![]() ![]() |
bool | Undo
(
bool bCanRedo |
Executes an undo transaction, undoing all actions contained by that transaction. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Called to finish destroying the object. | |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnTransactorBeforeRedoUndo | Gets an event delegate that is executed when a redo operation is being attempted. | |
![]() |
FOnTransactorRedo | Gets an event delegate that is executed when a redo operation is being attempted. | |
![]() |
FOnTransactorTransactionStateChanged | Gets an event delegate that is executed when a transaction state changes. | |
![]() |
FOnTransactorUndo | Gets an event delegate that is executed when a undo operation is being attempted. | |
![]() |
FOnTransactorUndoBufferChanged | Gets an event delegate that is executed when the undo buffer changed. |