Navigation
API > API/Runtime > API/Runtime/AIModule
| Name | UBlackboardComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BlackboardComponent.h |
| Include Path | #include "BehaviorTree/BlackboardComponent.h" |
Syntax
UCLASS (ClassGroup=AI, Meta=(BlueprintSpawnableComponent), HideCategories=(Sockets, Collision),
MinimalAPI)
class UBlackboardComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UBlackboardComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBlackboardComponent
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/BlackboardComponent.h |
Structs
| Name | Remarks |
|---|---|
| FOnBlackboardChangeNotificationInfo |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Tooltip | BehaviorTree/BlackboardComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CacheBrainComponent
(
UBrainComponent& BrainComponent |
Caches UBrainComponent pointer to be used in communication | BehaviorTree/BlackboardComponent.h | |
void ClearValue
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h |
|
|
void ClearValue
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
EBlackboardCompare::Type CompareKeyValues
(
TSubclassOf< UBlackboardKeyType > KeyType, |
Compares blackboard's values under specified keys | BehaviorTree/BlackboardComponent.h | |
bool CopyKeyValue
(
FBlackboard::FKey SourceKeyID, |
Copy content from SourceKeyID to DestinationID and return true if it worked | BehaviorTree/BlackboardComponent.h | |
FString DescribeKeyValue
(
const FName& KeyName, |
Get description of value under given key | BehaviorTree/BlackboardComponent.h | |
FString DescribeKeyValue
(
FBlackboard::FKey KeyID, |
BehaviorTree/BlackboardComponent.h | ||
virtual void DescribeSelfToVisLog
(
FVisualLogEntry* Snapshot |
Prepare blackboard snapshot for logs | BehaviorTree/BlackboardComponent.h | |
UBlackboardData * GetBlackboardAsset() |
BehaviorTree/BlackboardComponent.h | ||
UBrainComponent * GetBrainComponent() |
BehaviorTree/BlackboardComponent.h | ||
FString GetDebugInfoString
(
EBlackboardDescription::Type Mode |
BehaviorTree/BlackboardComponent.h | ||
FBlackboard::FKey GetKeyID
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h | ||
FName GetKeyName
(
FBlackboard::FKey KeyID |
END UActorComponent overrides | BehaviorTree/BlackboardComponent.h | |
const uint8 * GetKeyRawData
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
const uint8 * GetKeyRawData
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h | ||
uint8 * GetKeyRawData
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
uint8 * GetKeyRawData
(
const FName& KeyName |
Get pointer to raw data for given key | BehaviorTree/BlackboardComponent.h | |
TSubclassOf< UBlackboardKeyType > GetKeyType
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
bool GetLocationFromEntry
(
FBlackboard::FKey KeyID, |
BehaviorTree/BlackboardComponent.h |
|
|
bool GetLocationFromEntry
(
const FName& KeyName, |
Return false if call failed (most probably no such entry in BB) | BehaviorTree/BlackboardComponent.h |
|
int32 GetNumKeys() |
BehaviorTree/BlackboardComponent.h | ||
bool GetRotationFromEntry
(
const FName& KeyName, |
Return false if call failed (most probably no such entry in BB) | BehaviorTree/BlackboardComponent.h |
|
bool GetRotationFromEntry
(
FBlackboard::FKey KeyID, |
BehaviorTree/BlackboardComponent.h |
|
|
| BehaviorTree/BlackboardComponent.h | |||
TDataClass::FDataType GetValue
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
bool GetValueAsBool
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
| BehaviorTree/BlackboardComponent.h |
|
||
uint8 GetValueAsEnum
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
float GetValueAsFloat
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
int32 GetValueAsInt
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
| BehaviorTree/BlackboardComponent.h |
|
||
| BehaviorTree/BlackboardComponent.h |
|
||
FRotator GetValueAsRotator
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
FString GetValueAsString
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
FVector GetValueAsVector
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h |
|
|
bool HasValidAsset() |
BehaviorTree/BlackboardComponent.h | ||
bool InitializeBlackboard
(
UBlackboardData& NewAsset |
Setup component for using given blackboard asset, returns true if blackboard is properly initialized for specified blackboard data | BehaviorTree/BlackboardComponent.h | |
virtual bool IsCompatibleWith
(
const UBlackboardData* TestAsset |
BehaviorTree/BlackboardComponent.h | ||
bool IsKeyInstanceSynced
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
bool IsKeyOfType
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
bool IsKeyOfType
(
const FName& KeyName |
BehaviorTree/BlackboardComponent.h | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGS bool IsValidKey
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h | ||
bool IsVectorValueSet
(
FBlackboard::FKey KeyID |
BehaviorTree/BlackboardComponent.h |
|
|
void PauseObserverNotifications() |
Pause observer change notifications, any new ones will be added to a queue | BehaviorTree/BlackboardComponent.h | |
FDelegateHandle RegisterObserver
(
FBlackboard::FKey KeyID, |
Register observer for blackboard key | BehaviorTree/BlackboardComponent.h | |
void ResumeObserverNotifications
(
bool bSendQueuedObserverNotifications |
Resume observer change notifications and, optionally, process the queued observation list | BehaviorTree/BlackboardComponent.h | |
bool SetValue
(
FBlackboard::FKey KeyID, |
BehaviorTree/BlackboardComponent.h | ||
| BehaviorTree/BlackboardComponent.h | |||
void SetValueAsBool
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
| BehaviorTree/BlackboardComponent.h |
|
||
void SetValueAsEnum
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
void SetValueAsFloat
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
void SetValueAsInt
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
| BehaviorTree/BlackboardComponent.h |
|
||
| BehaviorTree/BlackboardComponent.h |
|
||
void SetValueAsRotator
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
void SetValueAsString
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
void SetValueAsVector
(
const FName& KeyName, |
BehaviorTree/BlackboardComponent.h |
|
|
void UnregisterObserver
(
FBlackboard::FKey KeyID, |
Unregister observer from blackboard key | BehaviorTree/BlackboardComponent.h | |
void UnregisterObserversFrom
(
const UObject* NotifyOwner |
Unregister all observers associated with given owner | BehaviorTree/BlackboardComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeComponent() |
BEGIN UActorComponent overrides | BehaviorTree/BlackboardComponent.h | |
virtual void UninitializeComponent() |
BehaviorTree/BlackboardComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DestroyValues() |
Destroy allocated values | BehaviorTree/BlackboardComponent.h | |
void InitializeParentChain
(
UBlackboardData* NewAsset |
Initializes parent chain in asset | BehaviorTree/BlackboardComponent.h | |
void NotifyObservers
(
FBlackboard::FKey KeyID |
Notifies behavior tree decorators about change in blackboard | BehaviorTree/BlackboardComponent.h | |
void PopulateSynchronizedKeys() |
Populates BB's synchronized entries | BehaviorTree/BlackboardComponent.h | |
bool ShouldSyncWithBlackboard
(
UBlackboardComponent& OtherBlackboardComponent |
BehaviorTree/BlackboardComponent.h |