Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/FStateTreeConditionBase
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. Note: The condition instance data is shared between all the uses a State Tree asset. You should not modify the instance data in this callback.
| Name | StateCompleted |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeConditionBase.h |
| Include Path | #include "StateTreeConditionBase.h" |
virtual void StateCompleted
(
FStateTreeExecutionContext & Context,
const EStateTreeRunStatus CompletionStatus,
const FStateTreeActiveStates & CompletedActiveStates
) const
Parameters
| Name | Remarks |
|---|---|
| Context | Reference to current execution context. |
| CompletionStatus | Describes the running status of the completed state (Succeeded/Failed). |
| CompletedActiveStates | Active states at the time of completion. |