Skip to main content

EventDispatcher 2.0.3

Additions​

  • Wait For Event has a new On Failed output. It fires when the wait could not start, for example when Event Tag is empty or no Event Manager is available for the world context. Before, the node ended without any output.

The Wait For Event node with the new On Failed output

Fixes​

  • Wait For Event now ends when its listener is removed by Unregister Events or Unregister All Events For Object, when its world context object is destroyed, or when the owning Actor ends play. Before, the task could stay alive without ever firing again.
  • A Wait For Event with Only Trigger Once fires exactly once, even if the event is invoked again from inside its own On Event.
  • An empty Event Tag on Wait For Event logs a warning instead of triggering an ensure.
  • Added automation tests for Gameplay Tag events and Wait For Event.

EventDispatcher 2.0.2

The legacy event API is deprecated and will be removed in a future release. Use Gameplay Tag events for new integrations.

EventDispatcher 2.0

Gameplay Tag events​

  • Register Event and Invoke Event now accept a Gameplay Tag as the event identifier.
  • Send a struct payload with Make Instanced Struct and unpack it with Get Instanced Struct Value.
  • Turn on Include Child Tags to receive events below a parent tag. A listener for Event.UI can also receive Event.UI.MenuOpened.

Invoking a Gameplay Tag event

Registering a Gameplay Tag event listener

Listener handles​

Register Event returns a handle. Store it to remove that individual listener with Unregister Event By Handle or check whether it is still active with Is Event Handle Registered.

Blueprint nodes for listener handles

Unregister All Events For Object​

Remove an object's listeners across all event types in one call, for example during End Play or Destruct.

Unregister All Events For Object node

Wait For Event​

This asynchronous Blueprint node resumes execution when a Gameplay Tag event arrives. Configure it to fire once or continue listening, and use End Task to stop it.

Wait For Event Blueprint example

EventDispatcher 1.6.8

Fixes​

  • Fixed an issue where Unregister Events blocked later events from being queued.
  • Fixed crashes in Debug Event Manager for named events and when unregistering from inside a callback.
  • Fixed issues with multiple game instances, including multiplayer Play In Editor.
  • Payload objects stay alive until delivery to every listener.
  • Events run in invocation order, and the queue can now hold more than 100 entries.
  • Unregistering a listener cancels its pending calls. Listeners on destroyed objects are removed automatically.
  • Duplicate callback registrations are ignored.
  • Changes to Polling Rate take effect without restarting.
  • Logs now warn about event type mismatches and registrations without a callback.

Additions​

  • Added Dispatch Immediately and Dispatch While Paused project settings.
  • Exposed UEventIdentifier to other C++ modules.
  • Added GetNumRegisteredEvents() and GetNumQueuedEvents() to UEventManager.
  • Added automation tests in the EventDispatcherTests editor module.

EventDispatcher 1.6.4

Each processing interval now drains the entire incoming event queue. Previously, the dispatcher handled one event per interval.

EventDispatcher 1.6.3

Added named events. They use string identifiers and otherwise behave like object-identified events.

Registering named events​

Registering named events

Invoking named events​

Invoking named events

EventDispatcher 1.6.2

All invoke functions now accept an Optional Target parameter. Set it to invoke the event on a specific bound object, such as the game instance. Existing event registrations require no changes.

Invoking a simple event on the game instance

Registering a simple event