Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/UStateTreeTaskBlueprintBase
Description
Called during state tree tick when the task is on active state. Use FinishTask() to set the task execution completed. State completion is controlled by completed tasks.
Triggering GameplayTasks and other latent action should generally be done on EnterState. Tick is called on each update (or event) and can cause huge amount of task added if the logic is not handled carefully. Tick should be generally be used for monitoring that require polling, or actions that require constant ticking.
Note: The method is called only if bShouldCallTick or bShouldCallTickOnlyOnEvents is set.
| Name | ReceiveLatentTick |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Blueprint/StateTreeTaskBlueprintBase.h |
| Include Path | #include "Blueprint/StateTreeTaskBlueprintBase.h" |
UFUNCTION (BlueprintImplementableEvent, Meta=(DisplayName="Tick"))
void ReceiveLatentTick
(
const float DeltaTime
)
Parameters
| Name | Remarks |
|---|---|
| DeltaTime | Time since last StateTree tick. |