SaveToTransactionBuffer

Save a copy of this object into the transaction buffer if we are currently recording into one (undo/redo).

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp

Syntax

bool SaveToTransactionBuffer
(
    UObject * Object,
    bool bMarkDirty
)

Remarks

Save a copy of this object into the transaction buffer if we are currently recording into one (undo/redo). If bMarkDirty is true, will also mark the package as needing to be saved.

Returns

true if a copy of the object was saved and the package potentially marked dirty; false if we are not recording into a transaction buffer, the package is a PIE/script package, or the object is not transactional (implies the package was not marked dirty)

Parameters

Parameter

Description

bMarkDirty

If true, marks the package dirty if we are currently recording into a transaction buffer

Object

object to save.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss