Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/Blueprint > API/Plugins/StateTreeModule/Blueprint/UStateTreeTaskBlueprintBase > API/Plugins/StateTreeModule/Blueprint/UStateTreeTaskBlueprintBase/EnterState
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Blueprint/StateTreeTaskBlueprintBase.h |
| Include | #include "Blueprint/StateTreeTaskBlueprintBase.h" |
virtual EStateTreeRunStatus EnterState
(
FStateTreeExecutionContext & Context,
const EStateTreeStateChangeType ChangeType,
const FStateTreeTransitionResult & Transition
)
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.