UGameplayTask_TimeLimitedExecution

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UGameplayTask

UGameplayTask_TimeLimitedExecution

References

Module

GameplayTasks

Header

/Engine/Source/Runtime/GameplayTasks/Classes/Tasks/GameplayTask_TimeLimitedExecution.h

Include

#include "Tasks/GameplayTask_TimeLimitedExecution.h"

Syntax

class UGameplayTask_TimeLimitedExecution : public UGameplayTask

Remarks

Adds time limit for running a child task

Variables

Name Description

Public variable

FTaskFinishDele...

 

OnFinished

Called when child task finishes execution before time runs out

Public variable

FTaskFinishDele...

 

OnTimeExpired

Called when time runs out

Constructors

Name Description

Public function

UGameplayTask_TimeLimitedExecution

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

UGameplayTas...

 

LimitExecutionTime

(
    IGameplayTaskOwnerInterface& InTas...,
    float Time,
    const uint8 Priority,
    const FName InInstanceName
)

Overridden from UGameplayTask

Name Description

Public function Virtual

void

 

Activate()

Called to trigger the actual task once the delegates have been set up Note that the default implementation does nothing and you don't have to call it

Public function Virtual Const

FString

 

GetDebugString()

Return debug string describing task

Overridden from IGameplayTaskOwnerInterface

Name Description

Public function Virtual

void

 

OnGameplayTaskActivated

(
    UGameplayTask& Task
)

Notify called after GameplayTask changes state to Active (initial activation or resuming)

Public function Virtual

void

 

OnGameplayTaskDeactivated

(
    UGameplayTask& Task
)

Notify called after GameplayTask changes state from Active (finishing or pausing)

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