mUIAudioManager

Summary

Component for management audio playback

Relation

UnityEngine.MonoBehaviour
mUniSm.Core.IMonoCacheBehaviour

Variable

durationSource Effect duration source

Property

Instance Component for management audio playback
cachedGameObject Reference cache of GameObject
cachedTransform Reference cache of Transform
cachedRectTransform Reference cache of RectTransform
active True if the game object is active It is possible to change the state of the game object by setting bool
IsBGMPlaying Gets a value indicating whether this BGM is playing.
IsSoundEffectPlaying Gets a value indicating whether this sound effect is playing.
sourcePrimary Gets the source primary.
sourceSecondary Gets the source secondary.
sourceEffect Gets the source for sound effect.
sourceTalk Gets the source for talk.
effectDuration Gets or sets the duration of the effect.
bgmVolume Gets or sets the BGM volume.
effectVolume Gets or sets the sound effect volume.
talkVolume Gets or sets the talk volume.

Method

SetMainBGM(UnityEngine.AudioClip) Sets the main BGM.
GetMainBGM( ) Gets the main BGM.
IsSetBGM( ) Determines whether the main BGM is set.
SetSoundEffect(System.String,UnityEngine.AudioClip) Sets the sound effect.
GetSoundEffect(System.String) Gets the sound effect.
IsSetEffect(System.String) Determines whether the sound effect is set by the specified key.
SetSoundEffect(mUISoundEffect,UnityEngine.AudioClip) Sets the sound effect.
GetSoundEffect(mUISoundEffect) Gets the sound effect.
IsSetEffect(mUISoundEffect) Determines whether the sound effect is set by the specified key.
Init(System.Single,System.Single,System.Single) Initializes the manager.
Switch(UnityEngine.AudioClip,System.Single,System.Single) Switch Play sound. Switch to the specified sound Loop play.
SwitchToBGM(System.Single,System.Single) Switch Play BGM. Switch to the specified sound Loop play.
Insert(UnityEngine.AudioClip,System.Single,System.Single) Insert Play sound. Switch to the original sound when playback is over.
Stop(System.Single) Stop this sound.
Shot(UnityEngine.AudioClip,System.Single) Play sound effect.
Shot(System.String,System.Single) Play sound effect by key.
Shot(mUISoundEffect,System.Single) Play sound effect by key.
ShotWithoutBGM(UnityEngine.AudioClip,System.Single) Play sound effect with muting bgm.
ShotWithoutBGM(System.String,System.Single) Play sound effect with muting bgm by key.
ShotWithoutBGM(mUISoundEffect,System.Single) Play sound effect with muting bgm by key.
Talk(UnityEngine.AudioClip,System.Single) Play talk sound
Validate( ) Callback method called when editing values in Unity Editor

Reference