Navigation
API > API/Runtime > API/Runtime/Messaging > API/Runtime/Messaging/IMessageBus > API/Runtime/Messaging/IMessageBus/Unsubscribe
Deprecated * Types names are now represented by path names. Please use a version of this function that takes an FTopLevelAssetPath as MessageType.
References
Module | Messaging |
Header | /Engine/Source/Runtime/Messaging/Public/IMessageBus.h |
Include | #include "IMessageBus.h" |
Source | /Engine/Source/Runtime/Messaging/Private/Bus/MessageBus.cpp |
virtual void Unsubscribe
&40;
const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > & Subscriber,
const FName & 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 (NAME_All = all types). |