Navigation
API > API/Plugins > API/Plugins/StateTreeEditorModule
Edit time data for StateTree asset. This data gets baked into runtime format before being used by the StateTreeInstance.
| Name | UStateTreeEditorData |
| Type | class |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Public/StateTreeEditorData.h |
| Include Path | #include "StateTreeEditorData.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, EditInlineNew, CollapseCategories, Within="StateTree",
Meta=(DisallowLevelActorReference=true))
class UStateTreeEditorData :
public UObject ,
public IStateTreeEditorPropertyBindingsOwner
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UStateTreeEditorData
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UStateTreeEditorData() |
StateTreeEditorData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Breakpoints | TArray< FStateTreeEditorBreakpoint > | Transient list of breakpoints added in the debugging session. | StateTreeEditorData.h |
|
| Colors | TSet< FStateTreeEditorColor > | Color Options to assign to a State | StateTreeEditorData.h |
|
| CompiledDispatchers | TArray< FStateTreeEditorDelegateDispatcherCompiledBinding > | List of the previous compiled delegate dispatchers. | StateTreeEditorData.h |
|
| EditorBindings | FStateTreeEditorPropertyBindings | StateTreeEditorData.h | ||
| EditorSchema | TObjectPtr< UStateTreeEditorSchema > | Schema describing how the editor schema is customized. | StateTreeEditorData.h |
|
| Evaluators | TArray< FStateTreeEditorNode > | StateTreeEditorData.h |
|
|
| Extensions | TArray< TObjectPtr< UStateTreeEditorDataExtension > > | The editor data extensions. A place to add extra information for plugins. | StateTreeEditorData.h |
|
| GlobalTasks | TArray< FStateTreeEditorNode > | StateTreeEditorData.h |
|
|
| GlobalTasksCompletion | EStateTreeTaskCompletionType | StateTreeEditorData.h |
|
|
| RootParameters | FStateTreeStateParameters | Public parameters that could be used for bindings within the Tree. | StateTreeEditorData.h |
|
| Schema | TObjectPtr< UStateTreeSchema > | Schema describing which inputs, evaluators, and tasks a StateTree can contain. | StateTreeEditorData.h |
|
| SubTrees | TArray< TObjectPtr< UStateTreeState > > | Top level States. | StateTreeEditorData.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnParametersChangedHandle | FDelegateHandle | StateTreeEditorData.h | ||
| OnStateParametersChangedHandle | FDelegateHandle | StateTreeEditorData.h | ||
| RootParameterPropertyBag | FInstancedPropertyBag | Public parameters property bag that could be used for bindings within the Tree. | StateTreeEditorData.h |
|
| RootParametersGuid | FGuid | Public parameters ID that could be used for bindings within the Tree. | StateTreeEditorData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStateTreeEditorNode< T > & AddEvaluator
(
TArgs&&... InArgs |
Adds Evaluator of specified type. | StateTreeEditorData.h | |
TStateTreeEditorNode< T > & AddGlobalTask
(
TArgs&&... InArgs |
Adds Global Task of specified type. | StateTreeEditorData.h | |
void AddPropertyBinding
(
const UScriptStruct* PropertyFunctionNodeStruct, |
Adds property binding to PropertyFunction of provided type. | StateTreeEditorData.h | |
void AddPropertyBinding
(
const UScriptStruct* PropertyFunctionNodeStruct, |
StateTreeEditorData.h | ||
bool AddPropertyBinding
(
const FStateTreeEditorNode& SourceNode, |
Adds property binding between two structs. | StateTreeEditorData.h | |
PRAGMA_DISABLE_DEPRECATION_WARNINGS void AddPropertyBinding
(
const FStateTreePropertyPath& SourcePath, |
StateTreeEditorData.h | ||
void AddPropertyBinding
(
const FPropertyBindingPath& SourcePath, |
Adds property binding between two structs. | StateTreeEditorData.h | |
UStateTreeState & AddRootState() |
Adds new Subtree named "Root". | StateTreeEditorData.h | |
UStateTreeState & AddSubTree
(
const FName Name |
Adds new Subtree with specified name. | StateTreeEditorData.h | |
virtual void CreateRootProperties
(
TArrayView< UE::PropertyBinding::FPropertyCreationDescriptor > InOutCreationDescs |
StateTreeEditorData.h | ||
const FStateTreeEditorColor * FindColor
(
const FStateTreeEditorColorRef& ColorRef |
Attempts to find a Color matching the provided Color Key | StateTreeEditorData.h | |
void GetAccessibleStruct
(
const TConstArrayView< const UStateTreeState* > Path, |
StateTreeEditorData.h | ||
void GetAccessibleStructsInExecutionPath
(
const TConstArrayView< const UStateTreeState* > Path, |
Returns array of nodes along the execution path, up to the TargetStruct. | StateTreeEditorData.h | |
void GetAllStructValues
(
TMap< FGuid, const FPropertyBindingDataView >& OutAllValues |
StateTreeEditorData.h | ||
void GetAllStructValues
(
TMap< FGuid, const FStateTreeDataView >& OutAllValues |
StateTreeEditorData.h | ||
ExtensionType * GetExtension() |
Find the first extension of the requested type. | StateTreeEditorData.h | |
UStateTreeState * GetMutableStateByID
(
const FGuid StateID |
StateTreeEditorData.h | ||
FText GetNodeDescription
(
const FStateTreeEditorNode& Node, |
Returns the description for the node for UI. | StateTreeEditorData.h | |
FGuid GetRootParametersGuid() |
StateTreeEditorData.h | ||
virtual const FInstancedPropertyBag & GetRootParametersPropertyBag() |
StateTreeEditorData.h | ||
const UStateTreeState * GetStateByID
(
const FGuid StateID |
StateTreeEditorData.h | ||
const UStateTreeState * GetStateByStructID
(
const FGuid TargetStructID |
StateTreeEditorData.h | ||
UStateTreeEditorDataExtension * K2_GetExtension
(
TSubclassOf< UStateTreeEditorDataExtension > ExtensionType |
Find the first extension of the requested type. | StateTreeEditorData.h |
|
void OnParametersChanged
(
const UStateTree& StateTree |
StateTreeEditorData.h | ||
void OnStateParametersChanged
(
const UStateTree& StateTree, |
StateTreeEditorData.h | ||
void ReparentStates() |
StateTreeEditorData.h | ||
EStateTreeVisitor VisitAllNodes
(
TFunctionRef< EStateTreeVisitor(const UStateTreeState*State, const FStateTreeBindableStructDesc... |
Iterates over all structs that are related to binding. | StateTreeEditorData.h | |
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. | StateTreeEditorData.h | |
EStateTreeVisitor VisitHierarchy
(
TFunctionRef< EStateTreeVisitor(UStateTreeState&State, UStateTreeState*ParentState)> InFunc |
Iterates over all structs that are related to binding | StateTreeEditorData.h | |
EStateTreeVisitor VisitHierarchyNodes
(
TFunctionRef< EStateTreeVisitor(const UStateTreeState*State, const FStateTreeBindableStructDesc... |
Iterates over all structs in the state hierarchy that are related to binding. | StateTreeEditorData.h | |
EStateTreeVisitor VisitStateNodes
(
const UStateTreeState& State, |
Iterates over all nodes in a given state. | StateTreeEditorData.h | |
EStateTreeVisitor VisitStructBoundPropertyFunctions
(
FGuid StructID, |
Iterates recursively over all property functions of the provided node. Also nested ones. | StateTreeEditorData.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
StateTreeEditorData.h | ||
virtual void PostDuplicate
(
EDuplicateMode::Type DuplicateMode |
StateTreeEditorData.h | ||
virtual void PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
StateTreeEditorData.h | ||
virtual void PostInitProperties() |
StateTreeEditorData.h | ||
virtual void PostLoad() |
StateTreeEditorData.h | ||
virtual void Serialize
(
FArchive& Ar |
StateTreeEditorData.h |
Overridden from IStateTreeEditorPropertyBindingsOwner
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EStateTreeVisitor EnumerateBindablePropertyFunctionNodes
(
TFunctionRef< EStateTreeVisitor(const UScriptStruct*NodeStruct, const FStateTreeBindableStructD... |
Iterates over all template property function nodes. | StateTreeEditorData.h | |
virtual FStateTreeBindableStructDesc FindContextData
(
const UStruct* ObjectType, |
Finds a bindable context struct based on name and type. | StateTreeEditorData.h | |
| StateTreeEditorData.h | |||
virtual const FStateTreeEditorPropertyBindings * GetPropertyEditorBindings () |
StateTreeEditorData.h |
Overridden from IPropertyBindingBindingCollectionOwner
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AppendBindablePropertyFunctionStructs
(
TArray< TInstancedStruct< FPropertyBindingBindableStructDescriptor > >& InOutStructs |
StateTreeEditorData.h | ||
virtual bool CanCreateParameter
(
const FGuid InStructID |
StateTreeEditorData.h | ||
virtual void CreateParametersForStruct
(
const FGuid InStructID, |
StateTreeEditorData.h | ||
virtual bool GetBindableStructByID
(
const FGuid StructID, |
StateTreeEditorData.h | ||
virtual void GetBindableStructs
(
const FGuid TargetStructID, |
StateTreeEditorData.h | ||
virtual bool GetBindingDataViewByID
(
const FGuid StructID, |
StateTreeEditorData.h | ||
virtual const FPropertyBindingBindingCollection * GetEditorPropertyBindings () |
StateTreeEditorData.h | ||
| StateTreeEditorData.h | |||
virtual void OnPropertyBindingChanged
(
const FPropertyBindingPath& InSourcePath, |
Todo: (jira UE-337309) we have many sites that manipulate state/node which will change bindings, but not calling this function. Currently it is only called when you change binding from the details view | StateTreeEditorData.h |