FLatentActionManager

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

Windows
MacOS
Linux

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

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/LatentActionManager.h

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