AudioControllerAddToCategory Method (AudioCategory, AudioItem) |
Namespace: (Default Namespace)
public static void AddToCategory( AudioCategory category, AudioItem audioItem )
var audioItem = new AudioItem(); audioItem.SubItemPickMode = AudioPickSubItemMode.Sequence; audioItem.subItems = new AudioSubItem[ 2 ]; audioItem.subItems[ 0 ] = new AudioSubItem(); audioItem.subItems[ 0 ].Clip = audioClip0; audioItem.subItems[ 0 ].Volume = 0.7f; audioItem.subItems[ 1 ] = new AudioSubItem(); audioItem.subItems[ 1 ].Clip = audioClip1; audioItem.subItems[ 1 ].Volume = 0.8f; AddToCategory( GetCategory( "CustomSFX" ), audioItem );