Navigation
API > API/Plugins > API/Plugins/StateTreeModule
Overrides for linked State Trees. This table is used to override State Tree references on linked states. If a linked state's tag is exact match of the tag specified on the table, the reference from the table is used instead.
| Name | FStateTreeReferenceOverrides |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeReference.h |
| Include Path | #include "StateTreeReference.h" |
Syntax
USTRUCT ()
struct FStateTreeReferenceOverrides
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OverrideItems | TArray< FStateTreeReferenceOverrideItem > | StateTreeReference.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddOverride
(
FStateTreeReferenceOverrideItem OverrideItem |
Adds or replaces override for a selected tag. | StateTreeReference.h | |
void AddOverride
(
const FGameplayTag StateTag, |
Adds or replaces override for a selected tag. | StateTreeReference.h | |
TConstArrayView< FStateTreeReferenceOverrideItem > GetOverrideItems() |
StateTreeReference.h | ||
bool RemoveOverride
(
const FGameplayTag StateTag |
Returns true if removing an override succeeded. | StateTreeReference.h | |
void Reset() |
Removes all overrides. | StateTreeReference.h |