Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/FStateTreeConditionBase
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeConditionBase.h |
| Include | #include "StateTreeConditionBase.h" |
virtual void EnterState
(
FStateTreeExecutionContext & Context,
const FStateTreeTransitionResult & Transition
) const
Remarks
Called when a new state is entered and task is part of active states. 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. Succeed/Failed will end the state immediately and trigger to select new state, Running will carry on to tick the state.
Parameters
| Name | Description |
|---|---|
| Context | Reference to current execution context. |
| Transition | Describes the states involved in the transition |