We need to, at least, prevent this by clearing observers when running a new BT using a different blackboard. Must also think that this might affect licensees relying on the current behavior (might have created "compatible BB" with similar set of keys)
FKey ObjectKey= MyBBComponent->GetKeyID(TEXT("ObjectKey")); MyBBComponent->RegisterObserver(ObjectKey, this, FOnBlackboardChangeNotification::CreateUObject(this, &MyComponent::OnBlackboardObjectChanged));
changing `ObjectKey` will no longer call the observer.
changing `VectorKey` will now call the observer registered for `ObjectKey`
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-176405 in the post.
|Component||UE - AI - BehaviorTree|
|Created||Feb 7, 2023|
|Updated||Feb 20, 2023|