VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
MultiAudioEmitter Class Reference

An audio emitter capable of playing sounds from a library using only one script. More...

Inheritance diagram for MultiAudioEmitter:
Collaboration diagram for MultiAudioEmitter:

Public Member Functions

void PlaySound (string soundString)
void PlaySound (int soundID)
 Play the specified sound that is paired with the passed integer.

Detailed Description

An audio emitter capable of playing sounds from a library using only one script.

Member Function Documentation

◆ PlaySound() [1/2]

void MultiAudioEmitter.PlaySound ( int soundID)
inline

Play the specified sound that is paired with the passed integer.

Parameters
soundIDThe integer ID of the target sound

◆ PlaySound() [2/2]

void MultiAudioEmitter.PlaySound ( string soundString)
inline

Play the specified sound that is paired with the passed string.

DON'T USE THIS FUNCTION UNLESS DEBUGGING! String modification is very inefficient.

Hash the audio string with AudioEmitterTools.StringToInteger(string) and then use the integer in the argument. Store the equivalent integer in a field and use that from then on.

Parameters
soundStringThe name of the sound to play set in the inspector. Case Sensitive
Here is the call graph for this function:
Here is the caller graph for this function:

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