An audio emitter capable of playing sounds from a library using only one script.
More...
|
void | PlaySound (string soundString) |
void | PlaySound (int soundID) |
| Play the specified sound that is paired with the passed integer.
|
An audio emitter capable of playing sounds from a library using only one script.
◆ PlaySound() [1/2]
void MultiAudioEmitter.PlaySound |
( |
int | soundID | ) |
|
|
inline |
Play the specified sound that is paired with the passed integer.
- Parameters
-
soundID | The 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
-
soundString | The name of the sound to play set in the inspector. Case Sensitive |
The documentation for this class was generated from the following file: