/Engine/Source/Runtime/Core/Public/Misc/ITransaction.h
Stores a command that can be used to undo a change to the specified object. This may be called multiple times in the same transaction to stack up changes that will be rolled back in reverse order. No copy of the object itself is stored.
void StoreUndo ( [UObject](API\Runtime\CoreUObject\UObject\UObject) * Object, [TUniquePtr](API\Runtime\Core\Templates\TUniquePtr)< [FChange](API\Runtime\Core\Misc\FChange) > CustomChange )