Ibralogue Docs
  • Manual
  • Scripting Reference
  • Website
  • GitHub
  • Discord
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    UnityAudioProvider
    Implements
    IAudioProvider
    Namespace: Ibralogue
    Assembly: .dll
    Syntax
    public class UnityAudioProvider : MonoBehaviour, IAudioProvider

    Methods

    | Edit this page View Source

    Play(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
    | Edit this page View Source

    Stop()

    Stops the currently playing audio.

    Declaration
    public void Stop()

    Implements

    IAudioProvider
    • Edit this page
    • View Source
    In this article

    Ibralogue

    A simple, extendable dialogue system library for the Unity Game Engine.

    Project

    • Website
    • GitHub
    • Release Notes

    Community

    • Discord
    • Patreon
    • Report a Bug

    MIT License · Unity 2022.3+