Skip to content

Event Hub

The EventHub serves as a central manager for events in your project. It allows you to parse and manage events from specific paths and provides options for configuring logging and colors.

You can either create one EventHub for the whole game or multiple based an your needs.

See also Domain Logic to create your own

1. Create an EventHub

To create an EventHub, follow these steps:

  1. In the Unity Editor, right-click in the Project window or within a desired folder.
  2. Select "Create" and navigate to "EventHub" to create a new EventHub asset.
  3. Give the EventHub a meaningful name.

Pasted image 20230705150416.png

2. Setup

After creating the EventHub, you need to set it up for event parsing and configuration. Follow these steps:

  1. Drag and drop the path from which you want to parse all the events into the "Path" field of the EventHub.
  2. Press the "Parse All Events in Path" button to initiate the parsing process. This will scan the specified path for events and populate the EventHub with the parsed Empty Events and Data Events.

Pasted image 20230705150541.png

  • Adjust the logging and color settings as per your requirements. These settings control if events are logged and the colors associated with them.

Pasted image 20230705150920.png

Feel free to customize the logging and color settings based on your project's needs.