Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/FStateTreeEnumInputConsideration
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).
Virtual Inheritance
- FStateTreeNodeBase::Compile → FStateTreeEnumInputConsideration::Compile
| Name | Compile |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Considerations/StateTreeCommonConsiderations.h |
| Include Path | #include "Considerations/StateTreeCommonConsiderations.h" |
| Source | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Private/Considerations/StateTreeCommonConsiderations.cpp |
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 |