 | AudioManagerPlay Method (AudioSource, Transform, Boolean) |
Spawn an AudioSource and pool it after the sound ends.
Namespace:
Kit
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntaxpublic static AudioSource Play(
AudioSource prefab,
Transform parent,
bool worldSpace = false
)
Request Example
View SourceParameters
- prefab
- Type: AudioSource
- parent
- Type: Transform
- worldSpace (Optional)
- Type: SystemBoolean
Return Value
Type:
AudioSourceThe pool instance.
See Also