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)
1) VectorKey
2) ObjectKey
1) ObjectKey
2) VectorKey
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.
0 |
Component | UE - AI - BehaviorTree |
---|---|
Affects Versions | 5.0 |
Target Fix | 5.6 |
Created | Feb 7, 2023 |
---|---|
Updated | Sep 4, 2024 |