FScopedTransaction

Delineates a transactable block; [Begin()](API\Runtime\InteractiveToolsFramework\EInputCaptureRequestType)s a transaction when entering scope, and [End()](API\Runtime\Engine\EActorIteratorType)s a transaction when leaving scope.

Choose your operating system:

Windows

macOS

Linux

References

Module

UnrealEd

Header

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

Include

#include "ScopedTransaction.h"

Syntax

class FScopedTransaction

Remarks

Delineates a transactable block; Begin()s a transaction when entering scope, and End()s a transaction when leaving scope.

Constructors

Name Description

Public function

FScopedTransaction

(
    const FText& SessionName,
    const bool bShouldActuallyTransact
)

Construct an FScopedTransaction with minimal context

Public function

FScopedTransaction

(
    const TCHAR* TransactionContex...,
    const FText& SessionName,
    UObject* PrimaryObject,
    const bool bShouldActuallyTransact
)

Construct an FScopedTransaction with full context

Destructors

Name Description

Public function

~FScopedTransaction()

Functions

Name Description

Public function

void

 

Cancel()

Cancels the transaction. Reentrant.

Public function Const

bool

 

IsOutstanding()