Class LocalMessageBus
A message bus for routing messages through the world.
public sealed class LocalMessageBus : MessageBus
- Inheritance
-
LocalMessageBus
- Inherited Members
Methods
Broadcast<TMessage>(TMessage, Route)
Send a message to its subscribed listeners along the provided route.
public void Broadcast<TMessage>(TMessage message, Route route)
Parameters
messageTMessageThe message to send.
routeRouteThe path along which the message should be sent.
Type Parameters
TMessageThe type of message being sent.
Exceptions
- InvalidOperationException
Thrown when trying to send a nonlocal message before the GameObject is activated.