Click or drag to resize

AudioControllerAddToCategory Method (AudioCategory, AudioClip, String)

Creates an AudioItem with the name audioID containing a single subitem playing the specified custom AudioClip. This AudioItem is then added to the specified category.

Namespace:  (Default Namespace)
Assembly:  AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public static AudioItem AddToCategory(
	AudioCategory category,
	AudioClip audioClip,
	string audioID
)

Parameters

category
Type: (Default Namespace)AudioCategory
The category.
audioClip
Type: AudioClip
The custom audio clip.
audioID
Type: SystemString
The audioID for the AudioItem to create.

Return Value

Type: AudioItem
The AudioItem created with the specified audioID
See Also