How to use
Last updated
Last updated
These are all the functions Hermes
provides.
All you need to do is get the Hermes
subsystem and call ListenForMessage
, then fill out the channel and message type you want.
You will want to store the MessageHandle
and eventually call Unregister Listener
to stop receiving messages.
For a receiver to receive a sent message, they must implement the HermesInterface
which will call ReceiveUniqueMessage
.
Some cases are small and niche enough that you don't want to bother creating an entire gameplay tag and create a whole new channel. This can happen when you want just two classes to talk together without referencing each other.
This workflow is not really recommended once you go past 2 classes. This is a niche workflow for small use cases.
It works exactly like the regular broadcast and listen nodes, you just fill in the channel with a raw FName.