Choose your operating system:
Windows
macOS
Linux
| FStateTreeExecutionContext
|
Module |
|
Header |
/Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeExecutionContext.h |
Include |
#include "StateTreeExecutionContext.h" |
USTRUCT()
struct FStateTreeExecutionContext
Runs StateTrees defined in UStateTree asset. Uses constant data from StateTree, keeps local storage of variables, and creates instanced Evaluators and Tasks.
Name | Description | ||
---|---|---|---|
|
DataViews |
Array of data pointers (external data, tasks, evaluators, conditions), used during evaluation. |
|
|
UObject * |
Owner |
|
|
const UStateTre... |
StateTree |
The StateTree asset the context is initialized for |
|
StorageInstance |
Optional Instance of the storage |
|
|
StorageType |
Storage type of the context |
|
|
VisitedStates |
States visited during a tick while updating evaluators. |
Name | Description | |
---|---|---|
|
FStateTreeExecutionContext() |
Name | Description | |
---|---|---|
|
~FStateTreeExecutionContext() |
Name | Description | ||
---|---|---|---|
|
AddStructReferencedObjects ( |
||
|
AddStructReferencedObjects ( |
||
|
AreExternalDataViewsValid() |
||
|
BeginGatedTransition ( |
Callback when gated transition is triggered. |
|
|
DebugGetStatePath ( |
||
|
DebugPrintInternalLayout ( |
||
|
EStateTreeRu... |
EnterState ( |
Handles logic for entering State. |
|
ExitState ( |
Handles logic for exiting State. |
|
|
GetActiveStateName ( |
||
|
GetActiveStates ( |
||
|
FStateTreeEx... |
GetExecState ( |
|
|
T::DataType ... |
GetExternalData ( |
Returns reference to external data based on provided handle. |
|
TConstArrayV... |
GetExternalDataDescs() |
Init() must be called before calling this method. |
|
FStateTreeEx... |
GetExternalDataHandleByStruct ( |
|
|
T::DataType ... |
GetExternalDataPtr ( |
Returns pointer to external data based on provided item handle. |
|
FStateTreeDa... |
GetExternalDataView ( |
|
|
T::DataType ... |
GetInstanceData ( |
Returns reference to instance data property based on provided handle. |
|
FStateTreeDa... |
GetInstanceData ( |
|
|
T::DataType ... |
GetInstanceDataPtr ( |
Returns pointer to instance data property based on provided handle. |
|
GetInstanceDescription() |
||
|
T * |
GetInstanceObjectInternal ( |
Used internally by the Blueprint wrappers to get wrapped instance objects. |
|
T & |
GetItem ( |
|
|
EStateTreeRu... |
GetLastTickStatus ( |
|
|
UObject *... |
GetOwner() |
|
|
GetSafeStateName ( |
||
|
const FBaked... |
GetStateFromHandle ( |
|
|
GetStateStatusString ( |
||
|
const UState... |
GetStateTree() |
Returns the StateTree asset in use. |
|
UWorld * |
GetWorld() |
|
|
Init ( |
Initializes the StateTree instance to be used with specific owner and StateTree asset. |
|
|
InitInstanceData ( |
Initializes external storage (no need to call, if using internal storage). |
|
|
IsValid() |
||
|
Reset() |
Resets the instance to initial empty state. |
|
|
FStateTreeDa... |
SelectMutableStorage ( |
|
|
FStateTreeTr... |
SelectState ( |
Runs state selection logic starting at the specified state, walking towards the leaf states. |
|
const FState... |
SelectStorage ( |
|
|
SetExternalData ( |
Sets external data view value for specific item. |
|
|
EStateTreeRu... |
Start ( |
Start executing. |
|
StateCompleted ( |
Handles logic for exiting State. |
|
|
EStateTreeRu... |
Stop ( |
Stop executing. |
|
TestAllConditions ( |
Checks all conditions at given range |
|
|
EStateTreeRu... |
Tick ( |
Tick the state tree logic. |
|
TickEvaluators ( |
Ticks evaluators of all active states starting from current state by delta time. |
|
|
EStateTreeRu... |
TickTasks ( |
Ticks tasks of all active states starting from current state by delta time. |
|
FStateTreeTr... |
TriggerTransitions ( |
Triggers transitions based on current run status. |