Navigation
API > API/Plugins > API/Plugins/StateTreeEditorModule
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UStateTreeEditorData
- UAvaTransitionTreeEditorData
References
| Module | StateTreeEditorModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Public/StateTreeEditorData.h |
| Include | #include "StateTreeEditorData.h" |
Syntax
UCLASS (BlueprintType, EditInlineNew, CollapseCategories)
class UStateTreeEditorData :
public UObject ,
public IStateTreeEditorPropertyBindingsOwner
Remarks
Edit time data for StateTree asset. This data gets baked into runtime format before being used by the StateTreeInstance.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FStateTreeEditorBreakpoint > | Breakpoints | Transient list of breakpoints added in the debugging session. | |
| TSet< FStateTreeEditorColor > | Colors | Color Options to assign to a State | |
| FStateTreeEditorPropertyBindings | EditorBindings | ||
| TArray< FStateTreeEditorNode > | Evaluators | ||
| TArray< FStateTreeEditorNode > | GlobalTasks | ||
| FStateTreeStateParameters | RootParameters | Public parameters that could be used for bindings within the Tree. | |
| TObjectPtr< UStateTreeSchema > | Schema | Schema describing which inputs, evaluators, and tasks a StateTree can contain | |
| TArray< TObjectPtr< UStateTreeState > > | SubTrees | Top level States. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TStateTreeEditorNode< T > & | AddEvaluator
(
TArgs&&... InArgs |
Adds Evaluator of specified type. | |
| TStateTreeEditorNode< T > & | AddGlobalTask
(
TArgs&&... InArgs |
Adds Global Task of specified type. | |
| void | AddPropertyBinding
(
const UScriptStruct* PropertyFunctionNodeStruct, |
Adds property binding to PropertyFunction of provided type. | |
| PRAGMA_ENABLE_DEPRECATION_WARNINGS bool | AddPropertyBinding
(
const FStateTreeEditorNode& SourceNode, |
Adds property binding between two structs. | |
| PRAGMA_DISABLE_DEPRECATION_WARNINGS void | AddPropertyBinding
(
const FStateTreeEditorPropertyPath& SourcePath, |
||
| void | AddPropertyBinding
(
const FStateTreePropertyPath& SourcePath, |
Adds property binding between two structs. | |
| UStateTreeState & | AddRootState () |
Adds new Subtree named "Root". | |
| UStateTreeState & | AddSubTree
(
const FName Name |
Adds new Subtree with specified name. | |
| void | CreateParameters
(
const FGuid StructID, |
||
| const FStateTreeEditorColor * | FindColor
(
const FStateTreeEditorColorRef& ColorRef |
Attempts to find a Color matching the provided Color Key | |
| void | GetAccessibleStructs
(
const TConstArrayView< const UStateTreeState* > Path, |
Returns array of nodes along the execution path, up to the TargetStruct. | |
| void | GetAllStructIDs
(
TMap< FGuid, const UStruct* >& AllStructs |
||
| void | GetAllStructValues
(
TMap< FGuid, const FStateTreeDataView >& AllValues |
||
| UStateTreeState * | GetMutableStateByID
(
const FGuid StateID |
||
| FText | GetNodeDescription
(
const FStateTreeEditorNode& Node, |
Returns the description for the node for UI. | |
| const UStateTreeState * | GetStateByID
(
const FGuid StateID |
||
| const UStateTreeState * | GetStateByStructID
(
const FGuid TargetStructID |
||
| void | OnObjectsReinstanced
(
const FReplacementObjectMap& ObjectMap |
||
| void | OnParametersChanged
(
const UStateTree& StateTree |
||
| void | OnStateParametersChanged
(
const UStateTree& StateTree, |
||
| void | OnUserDefinedStructReinstanced
(
const UUserDefinedStruct& UserDefinedStruct |
||
| void | |||
| EStateTreeVisitor | VisitAllNodes
(
TFunctionRef< EStateTreeVisitor(const UStateTreeState*State, const FStateTreeBindableStructDesc... |
Iterates over all structs that are related to binding. | |
| EStateTreeVisitor | VisitGlobalNodes
(
TFunctionRef< EStateTreeVisitor(const UStateTreeState*State, const FStateTreeBindableStructDesc... |
Iterates over all structs at the global level (context, tree parameters, evaluators, global tasks) that are related to binding. | |
| EStateTreeVisitor | VisitHierarchy
(
TFunctionRef< EStateTreeVisitor(UStateTreeState&State, UStateTreeState*ParentState)> InFunc |
Iterates over all structs that are related to binding | |
| EStateTreeVisitor | VisitHierarchyNodes
(
TFunctionRef< EStateTreeVisitor(const UStateTreeState*State, const FStateTreeBindableStructDesc... |
Iterates over all structs in the state hierarchy that are related to binding. | |
| void | VisitHierarchyNodes
(
TFunctionRef< EStateTreeVisitor(const UStateTreeState*State, const FGuid&ID, const FName&Name... |
||
| EStateTreeVisitor | VisitStateNodes
(
const UStateTreeState& State, |
Iterates over all nodes in a given state. | |
| EStateTreeVisitor | VisitStateNodes
(
const UStateTreeState& State, |
||
| EStateTreeVisitor | VisitStructBoundPropertyFunctions
(
FGuid StructID, |
Iterates recursively over all property functions of the provided node. Also nested ones. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
This alternate version of PostEditChange is called when properties inside structs are modified. | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
Overridden from IStateTreeEditorPropertyBindingsOwner
| Type | Name | Description | |
|---|---|---|---|
| bool | CanCreateParameter
(
const FGuid StructID |
Determines whether the struct matching the given struct id is capable of adding new properties | |
| EStateTreeVisitor | EnumerateBindablePropertyFunctionNodes
(
TFunctionRef< EStateTreeVisitor(const UScriptStruct*NodeStruct, const FStateTreeBindableStructD... |
||
| FStateTreeBindableStructDesc | FindContextData
(
const UStruct* ObjectType, |
Finds a bindable context struct based on name and type. | |
| void | GetAccessibleStructs
(
const FGuid TargetStructID, |
IStateTreeEditorPropertyBindingsOwner. | |
| bool | GetDataViewByID
(
const FGuid StructID, |
Returns data view based on struct ID. | |
| const FStateTreeEditorPropertyBindings * | |||
| FStateTreeEditorPropertyBindings * | |||
| bool | GetStructByID
(
const FGuid StructID, |
Returns struct descriptor based on struct ID. |
Typedefs
| Name | Description |
|---|---|
| FReplacementObjectMap |