Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/BehaviorTree
Inheritance Hierarchy
- UDataAsset
- UBlackboardData
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BlackboardData.h |
| Include | #include "BehaviorTree/BlackboardData.h" |
Syntax
UCLASS (BlueprintType, AutoExpandCategories=(Blackboard), MinimalAPI)
class UBlackboardData : public UDataAsset
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBlackboard::FKey | FirstKeyID | ||
| TArray< FBlackboardEntry > | Keys | Blackboard keys | |
| TObjectPtr< UBlackboardData > | Parent | Parent blackboard (keys can be overridden) | |
| TArray< FBlackboardEntry > | ParentKeys | All keys inherited from parent chain |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBlackboardData
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FBlackboard::FKey | |||
| const FBlackboardEntry * | GetKey
(
FBlackboard::FKey KeyID |
||
| FBlackboard::FKey | GetKeyID
(
const FName& KeyName |
||
| FName | GetKeyName
(
FBlackboard::FKey KeyID |
||
| const TArray< FBlackboardEntry > & | GetKeys () |
||
| TSubclassOf< UBlackboardKeyType > | GetKeyType
(
FBlackboard::FKey KeyID |
||
| int32 | GetNumKeys () |
||
| bool | |||
| FBlackboard::FKey | InternalGetKeyID
(
const FName& KeyName, |
||
| bool | IsChildOf
(
const UBlackboardData& OtherAsset |
Returns true if OtherAsset is somewhere up the parent chain of this asset. | |
| bool | IsKeyInstanceSynced
(
FBlackboard::FKey KeyID |
||
| bool | IsRelatedTo
(
const UBlackboardData& OtherAsset |
Returns true if OtherAsset is equal to *this, or is it's parent, or *this is OtherAsset's parent | |
| bool | IsValid () |
||
| bool | IsValidKey
(
FBlackboard::FKey KeyID |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | |||
| void | PostLoad () |
||
| void | |||
| void | Fix entries with deprecated key types | ||
| void | |||
| void | UpdateKeyIDs () |
Forces update of FirstKeyID, which depends on parent chain | |
| void | Updates parent key cache for editor | ||
| T * | UpdatePersistentKey
(
const FName& KeyName |
Updates persistent key with given name, depending on currently defined entries and parent chain |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EKeyLookupMode |
Typedefs
| Name | Description |
|---|---|
| FBlackboardDataChanged | A delegate called on PostEditChangeProperty. Can be used in editor to react to asset changes. |
| FKeyUpdate |
Constants
| Name | Description |
|---|---|
| OnBlackboardDataChanged | |
| OnUpdateKeys | Delegate called for every loaded blackboard asset meant for adding game specific persistent keys |