FStateTreeNodeClassCache

Caches specified classes or structs and reacts to engine events to keep the lists always up to date.

References

Module

StateTreeEditorModule

Header

/Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Public/StateTreeNodeClassCache.h

Include

#include "StateTreeNodeClassCache.h"

Syntax

struct FStateTreeNodeClassCache

Remarks

Caches specified classes or structs and reacts to engine events to keep the lists always up to date. All the derived classes or structs are kept in the cache.

Constructors

Name Description

Public function

FStateTreeNodeClassCache()

Destructors

Name Description

Public function

~FStateTreeNodeClassCache()

Functions

Name Description

Public function

void

 

AddRootClass

(
    UClass* RootClass
)

Adds a Class to keep track of

Public function

void

 

AddRootScriptStruct

(
    UScriptStruct* RootStruct
)

Adds a ScriptStruct to keep track of

Public function

void

 

AddRootStruct

(
    UStruct* RootStruct
)

Adds a Struct to keep track of

Public function

void

 

GetClasses

(
    UStruct* BaseClass,
    TArray< TSharedPtr< FStateTreeNodeC...
)

Returns know derived Classes based on provided base.

Public function

void

 

GetScripStructs

(
    UScriptStruct* BaseStruct,
    TArray< TSharedPtr< FStateTreeNodeC...
)

Returns know derived ScriptStructs based on provided base.

Public function

void

 

GetStructs

(
    UStruct* BaseStruct,
    TArray< TSharedPtr< FStateTreeNodeC...
)

Returns know derived Structs based on provided base.

Public function

void

 

InvalidateCache()

Invalidates the cache, it will be rebuild on next access.

Protected function

void

 

OnAssetAdded

(
    const FAssetData& AssetData
)

Protected function

void

 

OnAssetRemoved

(
    const FAssetData& AssetData
)

Protected function

void

 

OnReloadComplete

(
    EReloadCompleteReason Reason
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel