UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FBlackboard Namespace Reference

Classes

struct  FKey
 

Functions

uint32 GetTypeHash (const FKey &Key)
 
template<typename T >
TOptional< typename T::FDataType > TryGetBlackboardKeyValue (const UBlackboardComponent &Blackboard, const FName &Name, FBlackboard::FKey &InOutCachedKey)
 
template<typename T >
T::FDataType GetValue (const UBlackboardComponent &Blackboard, const FName &Name, FBlackboard::FKey &InOutCachedKey, const typename T::FDataType &DefaultValue)
 
template<typename T >
T::FDataType GetValue (const UBehaviorTreeComponent &BehaviorComp, const FName &Name, FBlackboard::FKey &InOutCachedKey, const typename T::FDataType &DefaultValue)
 
FConstStructView TryGetBlackboardKeyStruct (const UBlackboardComponent &Blackboard, const FName &Name, FBlackboard::FKey &InOutCachedKey, const UScriptStruct *TargetStruct)
 
FConstStructView GetStructValue (const UBlackboardComponent &Blackboard, const FName &Name, FBlackboard::FKey &InOutCachedKey, const FConstStructView &DefaultValue)
 
FConstStructView GetStructValue (const UBehaviorTreeComponent &BehaviorComp, const FName &Name, FBlackboard::FKey &InOutCachedKey, const FConstStructView &DefaultValue)
 
template<typename KeyType , typename ValueType >
EBTNodeResult::Type SetBlackboardKeyValue (UBehaviorTreeComponent &OwnerComp, const FBlackboardKeySelector &BlackboardKey, const ValueType &Value)
 

Variables

const FName KeySelf = TEXT("SelfActor")
 
constexpr FKey InvalidKey = FKey()
 

Function Documentation

◆ GetStructValue() [1/2]

FConstStructView FBlackboard::GetStructValue ( const UBehaviorTreeComponent BehaviorComp,
const FName Name,
FBlackboard::FKey InOutCachedKey,
const FConstStructView DefaultValue 
)

◆ GetStructValue() [2/2]

FConstStructView FBlackboard::GetStructValue ( const UBlackboardComponent &  Blackboard,
const FName Name,
FBlackboard::FKey InOutCachedKey,
const FConstStructView DefaultValue 
)

◆ GetTypeHash()

uint32 FBlackboard::GetTypeHash ( const FKey Key)
inline

◆ GetValue() [1/2]

template<typename T >
T::FDataType FBlackboard::GetValue ( const UBehaviorTreeComponent BehaviorComp,
const FName Name,
FBlackboard::FKey InOutCachedKey,
const typename T::FDataType &  DefaultValue 
)

◆ GetValue() [2/2]

template<typename T >
T::FDataType FBlackboard::GetValue ( const UBlackboardComponent &  Blackboard,
const FName Name,
FBlackboard::FKey InOutCachedKey,
const typename T::FDataType &  DefaultValue 
)

◆ SetBlackboardKeyValue()

template<typename KeyType , typename ValueType >
EBTNodeResult::Type FBlackboard::SetBlackboardKeyValue ( UBehaviorTreeComponent OwnerComp,
const FBlackboardKeySelector BlackboardKey,
const ValueType &  Value 
)

◆ TryGetBlackboardKeyStruct()

FConstStructView FBlackboard::TryGetBlackboardKeyStruct ( const UBlackboardComponent &  Blackboard,
const FName Name,
FBlackboard::FKey InOutCachedKey,
const UScriptStruct TargetStruct 
)

◆ TryGetBlackboardKeyValue()

template<typename T >
TOptional< typename T::FDataType > FBlackboard::TryGetBlackboardKeyValue ( const UBlackboardComponent &  Blackboard,
const FName Name,
FBlackboard::FKey InOutCachedKey 
)

Variable Documentation

◆ InvalidKey

constexpr FKey FBlackboard::InvalidKey = FKey()
inlineconstexpr

◆ KeySelf

const FName FBlackboard::KeySelf = TEXT("SelfActor")