UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LatentActionManager.h File Reference
#include "UObject/ObjectMacros.h"
#include "UObject/WeakObjectPtr.h"
#include "LatentActionManager.generated.h"

Go to the source code of this file.

Classes

struct  FLatentActionInfo
 

Namespaces

namespace  LatentActionCVars
 

Enumerations

enum class  ELatentActionChangeType : uint8 { ActionsRemoved , ActionsAdded }
 

Functions

 DECLARE_MULTICAST_DELEGATE_TwoParams (FOnLatentActionsChanged, UObject *, ELatentActionChangeType) struct FLatentActionManager
 

Variables

int32 LatentActionCVars::GuaranteeEngineTickDelay = 0
 

Enumeration Type Documentation

◆ ELatentActionChangeType

Enumerator
ActionsRemoved 

Latent actions were removed

ActionsAdded 

Latent actions were added

Function Documentation

◆ DECLARE_MULTICAST_DELEGATE_TwoParams()

DECLARE_MULTICAST_DELEGATE_TwoParams ( FOnLatentActionsChanged  ,
UObject ,
ELatentActionChangeType   
)
Returns
A delegate that will be broadcast when a latent action is added or removed from the manager

Advance pending latent actions by DeltaTime. If no object is specified it will process any outstanding actions for objects that have not been processed for this frame.

Parameters
InOjectSpecific object pending action list to advance.
DeltaTimeDelta time.

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

Parameters
InOjectActionListType to check for pending actions.
UUIDUUID of the action we are looking for.
FilterPredicateFilter predicate indicating which instance to return

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

Parameters
InOjectActionListType to check for pending actions.
UUIDUUID of the action we are looking for.

Removes all actions for given object. It the latent actions are being currently handled (so the function is called inside a ProcessLatentActions functions scope) there is no guarantee, that the action will be removed before its execution.

Parameters
InOjectSpecific object

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

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

Returns the number of actions for a given object

Map of UUID->Action(s).

Map of UUID->Action(s).

Map to convert from object to FActionList.

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

Parameters
InOjectActionListType to check for pending actions.

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

Parameters
InOjectActionListType to check for pending actions.

Ticks the latent action for a single UObject.

Parameters
DeltaTimetime delta.
ObjectActionListthe action list for the object
InObjectthe object itself.

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

Delegate called when a latent action is added or removed