Click or drag to resize

AudioManagerPlay Method (AudioSource, Vector3)

Spawn an AudioSource and pool it after the sound ends.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static AudioSource Play(
	AudioSource prefab,
	Vector3 position
)
Request Example View Source

Parameters

prefab
Type: AudioSource
position
Type: Vector3

Return Value

Type: AudioSource
The pool instance.
See Also