Navigation
API > API/Runtime > API/Runtime/Messaging > API/Runtime/Messaging/IMessageBus
References
| Module | Messaging |
| Header | /Engine/Source/Runtime/Messaging/Public/IMessageBus.h |
| Include | #include "IMessageBus.h" |
void Publish
&40;
void &42; Message,
UScriptStruct &42; TypeInfo,
EMessageScope Scope,
const TMap< FName, FString > & Annotations,
const FTimespan & Delay,
const FDateTime & Expiration,
const TSharedRef< IMessageSender, ESPMode::ThreadSafe > & Publisher
&41;
Remarks
Sends a message to subscribed recipients.
The bus takes over ownership of the message's memory. It must NOT be freed by the caller.
Parameters
| Name | Description |
|---|---|
| Message | The message to publish. |
| TypeInfo | The message's type information. |
| Scope | The message scope. |
| Annotations | An optional message annotations header. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
| Publisher | The message publisher. |