SoundEvent Functions
Reference of all the SoundEvent functions
using UnityEngine;
using Sonity;
public class PlayStopExample : MonoBehaviour {
public SoundEvent soundEvent;
void PlayExample() {
// Plays the SoundEvent at the position of the transform
soundEvent.Play(transform);
}
void StopExample() {
// Stops the SoundEvent playing at the transform
soundEvent.Stop(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 Functions
UI Play
Parameters
UI Stop
Parameters
UI Pause and Unpause
Parameters
UI Get State, Length and Time
Parameters
Music Functions
Music Play
Parameters
Music Stop
Parameters
Music Pause and Unpause
Parameters
Music Get State, Length and Time
Parameters
Last updated