Navigation
API > API/Plugins > API/Plugins/StateTreeModule
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreePropertyRef.h |
| Include | #include "StateTreePropertyRef.h" |
Syntax
USTRUCT ()
struct FStateTreePropertyRef
Remarks
Property ref allows to get a pointer to selected property in StateTree. The expected type of the reference should be set in "RefType" meta specifier.
Meta specifiers for the type:
- RefType = "
" - Specifies the type of property to reference.
- Supported types are: bool, byte, int32, int64, float, double, Name, String, Text, UObject pointers, and structs.
- IsRefToArray
- If specified, the reference is to an TArray
- Optional
- If specified, the reference can be left unbound, otherwise the compiler report error if the reference is not bound.
Example:
// Reference to float
FStateTreePropertyRef RefToFloat;
// Reference to FTestStructBase
FStateTreePropertyRef RefToTest;
// Reference to TArray
FStateTreePropertyRef RefToArrayOfTests;
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| T * | GetMutablePtr
(
FStateTreeExecutionContext& Context |
||
| FStateTreeIndex16 | Used internally. |