Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/GameplayTasks/Classes/Tasks/GameplayTask_TimeLimitedExecution.h |
Include |
#include "Tasks/GameplayTask_TimeLimitedExecution.h" |
class UGameplayTask_TimeLimitedExecution : public UGameplayTask
Adds time limit for running a child task
child task needs to be created with UGameplayTask_TimeLimitedExecution passed as TaskOwner
activations are tied together and when either UGameplayTask_TimeLimitedExecution or child task is activated, other one starts as well
OnFinished and OnTimeExpired are mutually exclusive
Name | Description | ||
---|---|---|---|
|
FTaskFinishDele... |
OnFinished |
Called when child task finishes execution before time runs out |
|
FTaskFinishDele... |
OnTimeExpired |
Called when time runs out |
Name | Description | |
---|---|---|
|
UGameplayTask_TimeLimitedExecution ( |
Name | Description | ||
---|---|---|---|
|
UGameplayTas... |
LimitExecutionTime ( |
Name | Description | ||
---|---|---|---|
|
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 |
|
|
GetDebugString() |
Return debug string describing task |
Name | Description | ||
---|---|---|---|
|
OnGameplayTaskActivated ( |
Notify called after GameplayTask changes state to Active (initial activation or resuming) |
|
|
OnGameplayTaskDeactivated ( |
Notify called after GameplayTask changes state from Active (finishing or pausing) |