Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/TStateTreeStrongExecutionContext
Description
Finishes a task. If called during tick processing, then the state completes immediately. If called outside of the tick processing, then the request is buffered and handled on the next tick.
| Name | FinishTask |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeAsyncExecutionContext.h |
| Include Path | #include "StateTreeAsyncExecutionContext.h" |
| Source | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Private/StateTreeAsyncExecutionContext.cpp |
template<bool bWriteAccess, std::enable_if_t<(bWriteAccess), int >>
bool FinishTask
(
EStateTreeFinishTaskType FinishType
) const
false if the context is not valid or doesn't have a valid frame anymore or finish task failed.