Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/UStateTreeTaskBlueprintBase
Description
Called right after a state has been completed, but before new state has been selected. StateCompleted is called in reverse order to allow to propagate state to other Tasks that are executed earlier in the tree. Note that StateCompleted is not called if conditional transition changes the state.
| Name | ReceiveStateCompleted |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Blueprint/StateTreeTaskBlueprintBase.h |
| Include Path | #include "Blueprint/StateTreeTaskBlueprintBase.h" |
UFUNCTION (BlueprintImplementableEvent, Meta=(DisplayName="StateCompleted"))
void ReceiveStateCompleted
(
const EStateTreeRunStatus CompletionStatus,
const FStateTreeActiveStates CompletedActiveStates
)
Parameters
| Name | Remarks |
|---|---|
| CompletionStatus | Describes the running status of the completed state (Succeeded/Failed). |
| CompletedActiveStates | Active states at the time of completion. |