Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/FStateTreeTaskBase > API/Plugins/StateTreeModule/FStateTreeTaskBase/ExitState
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTaskBase.h |
| Include | #include "StateTreeTaskBase.h" |
virtual void ExitState
(
FStateTreeExecutionContext & Context,
const EStateTreeStateChangeType ChangeType,
const FStateTreeTransitionResult & Transition
) const
Remarks
Note: The API has been deprecated. ChangeType is moved into FStateTreeTransitionResult. You can configure the task to be only called on state changes (that is, never call sustained changes) by setting bShouldStateChangeOnReselect to true.