UObject::Modify

That the object will be modified.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "UObject/Object.h"

Source

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

Syntax

virtual bool Modify
(
    bool bAlwaysMarkDirty
)

Remarks

That the object will be modified. If we are currently recording into the transaction buffer (undo/redo), save a copy of this object into the buffer and marks the package as needing to be saved.

Returns

true if the object was saved to the transaction buffer

Parameters

Parameter

Description

bAlwaysMarkDirty

if true, marks the package dirty even if we aren't currently recording an active undo/redo transaction