class unreal.StateTreeStructRef

Bases: StructBase

StateTree struct ref allows to get a reference/pointer to a specified type via property binding. It is useful for referencing larger properties to avoid copies of the data, or to be able to write to a bounds property.

The expected type of the reference should be set in “BaseStruct” meta tag.


USTRUCT() struct FAwesomeTaskInstanceData {


UPROPERTY(VisibleAnywhere, Category = Input, meta = (BaseStruct = “/Script/AwesomeModule.AwesomeData”)) FStateTreeStructRef Data;

C++ Source:

  • Plugin: StateTree

  • Module: StateTreeModule

  • File: StateTreeTypes.h