Master Audio - AAA Sound Solution! v2024
The ultimate AAA audio config tool
Loading...
Searching...
No Matches
DarkTonic.MasterAudio.ICustomEventReceiver Interface Reference

This interface is used by EventSounds and can be implemented on your custom classes to listen for Custom Events that are fired. More...

Public Member Functions

void CheckForIllegalCustomEvents ()
 This checks for events that are not found in MasterAudio. It's a good idea to call this in Start (Awake is too early), and save yourself some troubleshooting time! Optional
 
void ReceiveEvent (string customEventName, Vector3 originPoint)
 This receives the event when it's fired.
 
bool SubscribesToEvent (string customEventName)
 This returns a bool of whether the specified custom event is subscribed to in this class
 
void RegisterReceiver ()
 Registers the receiver with MasterAudio. Call this in OnEnable
 
void UnregisterReceiver ()
 Unregisters the receiver with MasterAudio. Call this in OnDisable
 
IList< AudioEventGroup > GetAllEvents ()
 Retrieves a list of all the events this receiver subscribes to
 

Detailed Description

This interface is used by EventSounds and can be implemented on your custom classes to listen for Custom Events that are fired.


The documentation for this interface was generated from the following file: