Property | Type | Description | |
---|---|---|---|
collections | List |
||
effectsGroup | |||
masterMixer | |||
musicGroup | |||
soundSourcePrefab | |||
sources | List |
||
voicesGroup |
Method | Description | |
---|---|---|
Find ( |
Return sound of given audio clip
|
|
Find ( int soundId ) : Sound |
Return sound of given ID
|
|
Find ( string soundName ) : Sound |
Return sound of given sound name
|
|
IsPlaying ( Sound sound ) : bool |
Return whether or not sound source of given sound is playing
|
|
Play ( |
Play sound source of given audio clip
|
|
Play ( Sound sound, float fadeTime = 0f, |
Play sound source of given sound
|
|
Play ( int soundId, float fadeTime = 0f, |
Play sound source of given ID
|
|
Play ( string soundName, float fadeTime = 0f, |
Play sound source of given sound name
|
|
Reset ( ) : void |
clear out sound sources from the obect pool
|
|
Stop ( Sound sound ) : void |
Stop playing sound of given sound
|
|
Stop ( |
Stop sound of given sound source
|
|
Stop ( int soundId ) : void |
Stop sound of given ID
|
Method | Description | |
---|---|---|
GetSoundSource ( Sound sound, |
Get sound source from collections
|
|
Initialize ( Sound sound, float fadeTime ) : void |
Initialize sound
|
|
OnSoundSourceStop ( |
Cleanup sound source
|
public Find ( |
||
audioClip | ||
return | Sound |
public Play ( |
||
audioClip | ||
fadeTime | float | |
parent | ||
position | ||
return |
public Play ( Sound sound, float fadeTime = 0f, |
||
sound | Sound | |
fadeTime | float | |
parent | ||
position | ||
return |
public Play ( int soundId, float fadeTime = 0f, |
||
soundId | int | |
fadeTime | float | |
parent | ||
position | ||
return |
public Play ( string soundName, float fadeTime = 0f, |
||
soundName | string | |
fadeTime | float | |
parent | ||
position | ||
return |
public Stop ( |
||
soundSource | ||
return | void |
public AudioMixerGroup,UnityEngine.Audio effectsGroup | ||
return |
public AudioMixer,UnityEngine.Audio masterMixer | ||
return |
public AudioMixerGroup,UnityEngine.Audio musicGroup | ||
return |