Class UnityAudioProvider
Built-in audio provider that plays clips using a Unity AudioSource. Clips are loaded via Resources.Load<T>(string) using the clip ID as the path.
Implements
Namespace: Ibralogue
Assembly: .dll
Syntax
public class UnityAudioProvider : MonoBehaviour, IAudioProvider
Methods
| Edit this page View SourcePlay(string)
Plays an audio clip identified by the given clip ID (typically a Resources path or an identifier understood by the audio backend).
Declaration
public void Play(string clipId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | clipId |
Stop()
Stops the currently playing audio.
Declaration
public void Stop()