EventTrigger
The Event trigger component is responsible for sending an event into Fabric with a specific action (i.e. Play, Stop, Set Volume/Pitch) and parameter values. Every component that is listening for that event within the Fabric hierarchy will respond accordingly.
An even trigger can be set to trigger when certain game object function is called or by code through the event manager.
NOTE: It is very important to remember that when a game object is used when posting an event it is associated with a component instance. The same game object MUST be used in order to control the instance.
Event name persistence
Both event trigger and listener components store the event name even if the event manager or event list component are not present in the scene. This will ensure that the event name will not reset to the default, “_UnSet_”, state unless the Clear button is selected.
OnEnter Mode
When the "Trigger On" option is selected to be Trigger Enter or Exit a Mode option is enabled with two options,
- Default: This is the default behavior so anything that enters the trigger area will trigger the event.
- On Audio Listener: Only a Fabric audio listener can trigger the event
- On Tag: Only a game object with a specific Tag will post the event
Inspector Elements
Set DSPParameter
When the Set DSPParameter action is selected the following extra properties are added to the event trigger
The “Set DSPParameter” supports the following DSP effect parameters