C# Class AudioCategory, swip3

Exibir arquivo Open project: unit9/swip3 Class Usage Examples

Public Properties

Property Type Description
AudioItems AudioItem[],
AudioObjectPrefab GameObject
Name string

Public Methods

Method Description
AudioCategory ( AudioController, audioController ) : System

Instantiates an AudioCategory

Private Methods

Method Description
_AnalyseAudioItems ( AudioItem>.Dictionary audioItemsDict ) : void
_ApplyVolumeChange ( ) : void
_GetIndexOf ( AudioItem, audioItem ) : int
_IsCategoryParentOf ( AudioCategory, toTest, AudioCategory, parent ) : bool

Method Details

AudioCategory() public method

Instantiates an AudioCategory
public AudioCategory ( AudioController, audioController ) : System
audioController AudioController, The the category belongs to.
return System

Property Details

AudioItems public_oe property

Define your AudioItems using Unity inspector.
public AudioItem[], AudioItems
return AudioItem[],

AudioObjectPrefab public_oe property

Allows to define a specific audio object prefab for this category. If none is defined, the default prefab as set by AudioController.AudioObjectPrefab is taken.
This way you can e.g. use special effects such as the reverb filter for a specific category. Just add the respective filter component to the specified prefab.
public GameObject AudioObjectPrefab
return GameObject

Name public_oe property

The name of category ( = categoryID )
public string Name
return string