Click or drag to resize

AudioManagerPlay Method (AudioClip, Vector3, Boolean, Boolean)

Play an audio with a dedicated AudioSource and destroy it after it ends (if it's not looping).

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static AudioSource Play(
	AudioClip clip,
	Vector3 position,
	bool loop = false,
	bool is3D = true
)
Request Example View Source

Parameters

clip
Type: AudioClip
position
Type: Vector3
loop (Optional)
Type: SystemBoolean
is3D (Optional)
Type: SystemBoolean

Return Value

Type: AudioSource
The AudioSource instantiated.
See Also