Download

Blackboard 4.7 Help

Hi All!Can you help me?
Code: BlackboardComp->SetValueAsObject(EnemyKeyID, InPawn);

Compile:
…\Private\EnemyAIController.cpp(196): warning C4996: ‘UBlackboardComponent::SetValueAsObject’: This function is deprecated. Please use SetValue() instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.

…\Private\EnemyAIController.cpp(342): warning C4996: ‘UBlackboardComponent::GetValueAsObject’: This function is deprecated. Please use GetValue() instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.

I corrected my code to:
SetValue<UBlackboardKeyType_Object>(EnemyKeyID, InPawn);

Compile:
‘SetValue’ : undeclared identifier
‘UBlackboardKeyType_Object’ : undeclared identifier

Can someone help?

To be clear, you are using BlackboardComp->SetValue<UBlackboardKeyType_Object>(EnemyKeyID, InPawn); ?
And you have #include “BehaviorTree/Blackboard/BlackboardKeyType_Object.h” and #include “BehaviorTree/BlackboardComponent.h” included ?

Thank you, I realized what was my bug