EventManager

Overview

The event manager component is responsible for managing the list of events as well as the flow of events between the game and the fabric components.

NOTE: EventManager component needs to be located in the same game object as the Fabric Manager component. Fabric will automatically add it at runtime if one is not available but it will not be possible to store the event list.

Overview

Inspector Elements

Properties

Description

Log History Size

The size of the event log history (default: 128)

Force Queue All Events

Force queuing all posted events

Num of Events in Queue

Shows the number of events in the queue list

Add Event

The event with the name entered is added into the list.

Del Event

The event is deleted from the list.

Locate EventListeners

Highlights in the project hierarchy all game objects that have event listeners with a specific event name

Locate EventTriggers

Highlights in the project hierarchy all game objects that have event triggers with a specific event name

Clear Event List

Clear the event list only

Clear All

Clear event list and reset all event listener and event trigger names

Load Events From File

Opens a dialog box to load a list of events from a text file

Save Events to File

Opens a dialog box to save the event list into a text file

Unload Events From File

Opens a dialog box to unload existing events from a text file

Here is a link to a video explaining more about the event manager

https://www.youtube.com/watch?v=JBC363kYuaM&index=1&list=PLjo4vf11pt-MWtpdnyJdqJ41khf4YhS8y