While updating my code for the 4.7 version I came across this weird problem:
#include "BehaviorTree/Blackboard/BlackboardKeyType_Object.h"
...
BlackboardComp->SetValue<UBlackboardKeyType_Vector>(EnemyLocationID, NPC->Target->GetActorLocation());
Error:
Error 1 error C2653: 'UBlackboardKeyType_Vector' : is not a class or namespace name
Error 2 error C2974: 'UBlackboardComponent::SetValue' : invalid template argument for 'TDataClass', type expected
On the same file I have a similar code line, but this time using UBlackboardKeyType_Object, and it compiles without issues. One thing I noticed is that, when hovered with the mouse the UBlackboardKeyType_Object shows “class UBlackboardKeyType_Object”, while the UBlackboardKeyType_Vector shows “SetValue”.