| SoundInterfaceBehaviourPlaySoundEffect Method (AudioClip, Single, Boolean) |
Plays the specified sound effect with the passed volume.
Namespace: Slash.Unity.Common.SoundAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax public AudioSource PlaySoundEffect(
AudioClip clip,
float volume,
bool loop
)
Public Function PlaySoundEffect (
clip As AudioClip,
volume As Single,
loop As Boolean
) As AudioSource
public:
AudioSource^ PlaySoundEffect(
AudioClip^ clip,
float volume,
bool loop
)
member PlaySoundEffect :
clip : AudioClip *
volume : float32 *
loop : bool -> AudioSource
Parameters
- clip
- Type: AudioClip
Sound effect clip to play. - volume
- Type: SystemSingle
Volume to play the sound with. - loop
- Type: SystemBoolean
Whether to loop the sound effect, or play it one-shot.
Return Value
Type:
AudioSourceAudio source playing the specified clip.
See Also