Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetSystemLibrary
Description
Perform a latent action with a delay (specified in seconds). Calling again while it is counting down will be ignored.
| Name | Delay |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h |
| Include Path | #include "Kismet/KismetSystemLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Utilities|FlowControl",
Meta=(Latent, WorldContext="WorldContextObject", LatentInfo="LatentInfo", Duration="0.2", Keywords="sleep"))
static void Delay
(
const UObject * WorldContextObject,
float Duration,
struct FLatentActionInfo LatentInfo
)
Parameters
| Name | Remarks |
|---|---|
| WorldContext | World context. |
| Duration | length of delay (in seconds). |
| LatentInfo | The latent action. |