Navigation
API > API/Plugins > API/Plugins/StateTreeModule
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeInstanceData.h |
| Include | #include "StateTreeInstanceData.h" |
Syntax
USTRUCT ()
struct FStateTreeInstanceData
Remarks
StateTree instance data is used to store the runtime state of a StateTree. The layout of the data is described in a FStateTreeInstanceDataLayout.
Note: If FStateTreeInstanceData is placed on an struct, you must call AddStructReferencedObjects() manually, as it is not automatically called recursively. Note: Serialization is supported only for FArchive::IsModifyingWeakAndStrongReferences(), that is replacing object references.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FStateTreeInstanceStorage > | InstanceStorage | Storage for the actual instance data, always stores FStateTreeInstanceStorage. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FStateTreeInstanceData
(
const FStateTreeInstanceData& Other |
|||
FStateTreeInstanceData
(
FStateTreeInstanceData&& Other |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
||
| FStructView | AddTemporaryInstance
(
UObject& InOwner, |
Adds temporary instance data associated with specified frame and data handle. | |
| void | AddTransitionRequest
(
const UObject* Owner, |
Buffers a transition request to be sent to the State Tree. | |
| void | Append
(
UObject& InOwner, |
Appends new items to the instance, and moves existing data into the allocated instances. | |
| void | Append
(
UObject& InOwner, |
||
| void | Append
(
UObject& InOwner, |
||
| void | Append
(
UObject& InOwner, |
||
| void | Append
(
UObject& InOwner, |
Appends new items to the instance. | |
| bool | |||
| void | CopyFrom
(
UObject& InOwner, |
Shares the layout from another instance data, and copies the data over. | |
| int32 | |||
| const FStateTreeEventQueue & | |||
| const FStateTreeExecutionState * | |||
| FStateTreeEventQueue & | |||
| FStateTreeExecutionState * | |||
| UObject * | GetMutableObject
(
const int32 Index |
||
| FStateTreeInstanceStorage & | |||
| FStructView | GetMutableStruct
(
const int32 Index |
||
| UObject * | GetMutableTemporaryObject
(
const FStateTreeExecutionFrame& Frame, |
||
| FStructView | GetMutableTemporaryStruct
(
const FStateTreeExecutionFrame& Frame, |
||
| int32 | GetNumItems () |
||
| const UObject * | |||
| void | GetPreloadDependencies
(
TArray< UObject* >& OutDeps |
||
| const TSharedRef< FStateTreeEventQueue > & | |||
| const FStateTreeInstanceStorage & | GetStorage () |
||
| FConstStructView | |||
| TConstArrayView< FStateTreeTransitionRequest > | |||
| TWeakPtr< FStateTreeInstanceStorage > | |||
| TWeakPtr< const FStateTreeInstanceStorage > | |||
| bool | Identical
(
const FStateTreeInstanceData* Other, |
Type traits | |
| void | Init
(
UObject& InOwner, |
||
| void | Init
(
UObject& InOwner, |
||
| void | Init
(
UObject& InOwner, |
Initializes the array with specified items. | |
| void | Init
(
UObject& InOwner, |
||
| bool | |||
| bool | |||
| bool | IsValid () |
||
| bool | IsValidIndex
(
const int32 Index |
||
| bool | IsValidStructIndex
(
const int32 Index |
||
| int32 | Num () |
||
| int32 | NumObjects () |
||
| int32 | NumStructs () |
||
| void | Reset () |
Resets the data to empty. | |
| void | Empties the temporary instances. | ||
| void | Reset all pending transition requests. | ||
| bool | Serialize
(
FArchive& Ar |
||
| void | SetSharedEventQueue
(
const TSharedRef< FStateTreeEventQueue >& InSharedEventQueue |
Sets event queue from another instance data. Marks the event queue not owned. | |
| void | Shrinks the array sizes to specified lengths. Sizes must be small or equal than current size. | ||
| void |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FStateTreeInstanceData & | operator=
(
const FStateTreeInstanceData& Other |
||
| FStateTreeInstanceData & | operator=
(
FStateTreeInstanceData&& Other |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS TInstancedStruct< FStateTreeInstanceStorage > | InstanceStorage_DEPRECATED |