Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/FStateTreeNodeBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EDataValidationResult Compile
(
UE::StateTree::ICompileNodeContext& CompileContext |
Called during State Tree compilation, allows to modify and validate the node and instance data. | StateTreeNodeBase.h | |
virtual EDataValidationResult Compile
(
FStateTreeDataView InstanceDataView, |
Called during State Tree compilation, allows to modify and validate the node and instance data. | StateTreeNodeBase.h |
Compile(UE::StateTree::ICompileNodeContext &)
Description
Called during State Tree compilation, allows to modify and validate the node and instance data. The method is called with node and instance that is duplicated during compilation and used at runtime (it's different than the data used in editor).
| Name | Compile |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeNodeBase.h |
| Include Path | #include "StateTreeNodeBase.h" |
virtual EDataValidationResult Compile
(
UE::StateTree::ICompileNodeContext & CompileContext
)
Validation result based on if the validation succeeded or not. Returning Invalid will fail compilation and messages will be displayed as errors.
Parameters
| Name | Remarks |
|---|---|
| ValidationMessages | Any messages to report during validation. Displayed as errors if the validation result is Invalid, else as warnings. |
| CompileContext |
Compile(FStateTreeDataView, TArray< FText > &)
Description
Called during State Tree compilation, allows to modify and validate the node and instance data. The method is called with node and instance that is duplicated during compilation and used at runtime (it's different than the data used in editor).
| Name | Compile |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeNodeBase.h |
| Include Path | #include "StateTreeNodeBase.h" |
virtual EDataValidationResult Compile
(
FStateTreeDataView InstanceDataView,
TArray < FText > & ValidationMessages
)
Validation result based on if the validation succeeded or not. Returning Invalid will fail compilation and messages will be displayed as errors.
Parameters
| Name | Remarks |
|---|---|
| InstanceDataView | Pointer to the instance data. |
| ValidationMessages | Any messages to report during validation. Displayed as errors if the validation result is Invalid, else as warnings. |