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)

Select Skin
Light
Dark

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