Navigation
API > API/Runtime > API/Runtime/Messaging > API/Runtime/Messaging/IMessageBus > API/Runtime/Messaging/IMessageBus/Unsubscribe
References
| Module | Messaging |
| Header | /Engine/Source/Runtime/Messaging/Public/IMessageBus.h |
| Include | #include "IMessageBus.h" |
void Unsubscribe
&40;
const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > & Subscriber,
const FTopLevelAssetPath & MessageType
&41;
Remarks
Cancels the specified message subscription.
Parameters
| Name | Description |
|---|---|
| Subscriber | The subscriber wishing to stop receiving the messages. |
| MessageType | The type of messages to unsubscribe from (IMessageBus::PATHNAME_All = all types). |