C# Class AudioCategory, swip3

Afficher le fichier Open project: unit9/swip3 Class Usage Examples

Méthodes publiques

Свойство Type Description
AudioItems AudioItem[],
AudioObjectPrefab GameObject
Name string

Méthodes publiques

Méthode Description
AudioCategory ( AudioController, audioController ) : System

Instantiates an AudioCategory

Private Methods

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

Method Details

AudioCategory() public méthode

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

Property Details

AudioItems public_oe property

Define your AudioItems using Unity inspector.
public AudioItem[], AudioItems
Résultat 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
Résultat GameObject

Name public_oe property

The name of category ( = categoryID )
public string Name
Résultat string