Navigation
API > API/Plugins > API/Plugins/StateTreeModule
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeReference.h |
| Include | #include "StateTreeReference.h" |
Syntax
USTRUCT (BlueprintType )
struct FStateTreeReference
Remarks
Struct to hold reference to a StateTree asset along with values to parameterized it.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FInstancedPropertyBag | Parameters | ||
| TArray< FGuid > | PropertyOverrides | Array of overridden properties. | |
| TObjectPtr< UStateTree > | StateTree |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Sync parameters to match the asset if required. | ||
| FInstancedPropertyBag & | |||
| UStateTree * | |||
| const FInstancedPropertyBag & | |||
| const UStateTree * | GetStateTree () |
||
| bool | IsPropertyOverridden
(
const FGuid PropertyID |
||
| bool | IsValid () |
||
| void | PostSerialize
(
const FArchive& Ar |
||
| bool | Indicates if current parameters are compatible with those available in the selected StateTree asset. | ||
| bool | Serialize
(
FStructuredArchive::FSlot Slot |
||
| void | SetPropertyOverridden
(
const FGuid PropertyID, |
Sets the override status of specified property by ID. | |
| void | SetStateTree
(
UStateTree* NewStateTree |
Sets the StateTree asset and referenced parameters. | |
| void | Enforce self parameters to be compatible with those exposed by the selected StateTree asset. | ||
| void | SyncParametersToMatchStateTree
(
FInstancedPropertyBag& ParametersToSync |
Sync provided parameters to be compatible with those exposed by the selected StateTree asset. |