UBlackboardComponent::UnregisterObserver
#include "BehaviorTree/BlackboardComponent.h"
Access: public
Description
Removes a single previously registered observer delegate for the given key, identified by the handle returned from RegisterObserver.
Caveats & Gotchas
- • You must pass the same KeyID used at registration time — passing a different key silently fails to find the observer.
- • Safe to call while inside a change notification callback; removal is deferred if invoked during active notification broadcasting.
Signature
void UnregisterObserver(FBlackboard::FKey KeyID, FDelegateHandle ObserverHandle) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| KeyID | FBlackboard::FKey | The key the observer was registered against. | — |
| ObserverHandle | FDelegateHandle | The handle returned from the matching RegisterObserver call. | — |
Return Type
void Example
Unregister a specific observer C++
BlackboardComp->UnregisterObserver(TargetKey, ObserverHandle); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?