FLatentActionManager

The latent action manager handles all pending latent actions for a single world.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LatentActionManager.h

Include

#include "Engine/LatentActionManager.h"

Syntax

struct FLatentActionManager

Remarks

The latent action manager handles all pending latent actions for a single world.

Variables

Destructors

Name Description

Public function

~FLatentActionManager()

Functions

Name Description

Public function

void

 

AddNewAction

(
    UObject* InActionObject,
    int32 UUID,
    FPendingLatentAction* NewActio...
)

Adds a new action to the action list under a given UUID

Public function

void

 

BeginFrame()

Resets the list of objects we have processed the latent action list for.

Public function

ActionType &...

 

FindExistingAction

(
    UObject* InActionObject,
    int32 UUID
)

Finds the action instance for the supplied UUID, or will return NULL if one does not already exist.

Public function

ActionType &...

 

FindExistingActionWithPredicate

(
    UObject* InActionObject,
    int32 UUID,
    const PredicateType& FilterPredica...
)

Finds the action instance for the supplied UUID, or will return NULL if one does not already exist.

Protected function Const

const FObjec...

 

GetActionsForObject

(
    const TWeakObjectPtr< UObject >& I...
)

Finds the action instance for the supplied object will return NULL if one does not exist.

Protected function

FObjectActio...

 

GetActionsForObject

(
    const TWeakObjectPtr< UObject >& I...
)

Finds the action instance for the supplied object will return NULL if one does not exist.

Public function Const

void

 

GetActiveUUIDs

(
    UObject* InObject,
    TSet< int32 >& UUIDList
)

Builds a set of the UUIDs of pending latent actions on a specific object.

Public function Const

FString

 

GetDescription

(
    UObject* InObject,
    int32 UUID
)

Gets the description string of a pending latent action with the specified UUID for a given object, or the empty string if it's an invalid UUID

Public function

int32

 

GetNumActionsForObject

(
    TWeakObjectPtr< UObject > InObject
)

Returns the number of actions for a given object

Public function Static

FOnLatentAct...

 

OnLatentActionsChanged()

Public function

void

 

ProcessLatentActions

(
    UObject* InObject,
    float DeltaTime
)

Advance pending latent actions by DeltaTime.

Public function

void

 

RemoveActionsForObject

(
    TWeakObjectPtr< UObject > InObject
)

Removes all actions for given object.

Protected function

void

 

TickLatentActionForObject

(
    float DeltaTime,
    FActionList& ObjectActionList,
    UObject* InObject
)

Ticks the latent action for a single UObject.

Classes

Name

Description

Public struct

FObjectActions

Typedefs

Name

Description

FActionList

Map of UUID->Action(s).

FActionsForObject

FObjectToActionListMap

Map to convert from object to FActionList.

FUuidAndAction

List of actions that will be unconditionally removed at the begin of next tick

FWeakObjectAndActions

Constants

Name

Description

LatentActionsChangedDelegate

Delegate called when a latent action is added or removed

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss