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.

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()

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback