SoundManager Functions
Reference of all the functions accessible in SoundManager.Instance
using UnityEngine;
using Sonity;
public class PlayStopExample : MonoBehaviour {
public SoundEvent soundEvent;
void PlayExample() {
// Plays the SoundEvent at the position of the transform
SoundManager.Instance.Play(soundEvent, transform);
}
void StopExample() {
// Stops the SoundEvent playing at the transform
SoundManager.Instance.Stop(soundEvent, transform);
}
}Play
Parameters
PlayAtPosition
Parameters
Stop
Parameters
Pause and Unpause
Parameters
Get State, Length, Time and Contains Loop
Parameters
Get Spectrum Data
Parameters
Get Last Played AudioSource
Parameters
Load or Unload Audio Data
UI
UI Play
Parameters
UI Stop
Parameters
UI Pause and Unpause
Parameters
UI Get State, Length and Time
Parameters
Music
Music Play
Parameters
Music Stop
Parameters
Music Pause and Unpause
Music Get State, Length and Time
Parameters
Global Pause and Unpause
Global Volume
Global SoundTag
Global Distance Scale
Speed Of Sound
Voice Limit
Disable Playing Sounds
Get Addressable AudioMixer
Last updated