Click or drag to resize
SoundInterfaceBehaviourPlaySoundEffect Method (AudioClip, Single, Boolean)
Plays the specified sound effect with the passed volume.

Namespace: Slash.Unity.Common.Sound
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public AudioSource PlaySoundEffect(
	AudioClip clip,
	float volume,
	bool loop
)

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: AudioSource
Audio source playing the specified clip.
See Also