UndoBufferSize
UndoBufferSize
#Overview
name: UndoBufferSize
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 1
C++ source file.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEditorPerProjectUserSettings.ini:471, section: [Undo]
- INI Section:
Undo
- Raw value:
32
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp:1239
Scope (from outer to inner):
file
function UTransactor* UEditorEngine::CreateTrans
Source code excerpt:
CurrentUndoRedoContext = MakePimpl<FEditorTransactionDeltaContext>();
int32 UndoBufferSize;
if (!GConfig->GetInt(TEXT("Undo"), TEXT("UndoBufferSize"), UndoBufferSize, GEditorPerProjectIni))
{
UndoBufferSize = 16;
}
UE_LOG(LogInit, Log, TEXT("Undo buffer set to %d MB"), UndoBufferSize);
UTransBuffer* TransBuffer = NewObject<UTransBuffer>();
TransBuffer->Initialize((SIZE_T)UndoBufferSize * 1024 * 1024);
TransBuffer->OnBeforeRedoUndo().AddUObject(this, &UEditorEngine::HandleTransactorBeforeRedoUndo);
TransBuffer->OnRedo().AddUObject(this, &UEditorEngine::HandleTransactorRedo);
TransBuffer->OnUndo().AddUObject(this, &UEditorEngine::HandleTransactorUndo);
return TransBuffer;
}