FEditorUndoClient

Interface for tools wanting to handle undo/redo operations

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorUndoClient.h

Include

#include "EditorUndoClient.h"

Syntax

class FEditorUndoClient

Remarks

Interface for tools wanting to handle undo/redo operations

Destructors

Name Description

Public function Virtual

~FEditorUndoClient()

Always unregister for undo on destruction, just in case.

Functions

Name Description

Public function Virtual Const

FString

 

GetTransactionContext()

Return the transaction context for this client

Public function Virtual Const

bool

 

MatchesContext

(
    const FTransactionContext& InConte...,
    const TArray< TPair< UObject*,...
)

Called to see if the context of the current undo/redo operation is a match for the client Default state matching old context-less undo is Context="" and PrimaryObject=NULL

Public function Virtual

void

 

PostRedo

(
    bool bSuccess
)

Signal that client should run any PostRedo code

Public function Virtual

void

 

PostUndo

(
    bool bSuccess
)

Signal that client should run any PostUndo code