Backbone - Localization
 
Loading...
Searching...
No Matches
Backbone::LocalizedAudioClipsData Class Reference

ScriptableObject that stores a list of localized audio clip entries. More...

Inheritance diagram for Backbone::LocalizedAudioClipsData:

Public Attributes

List< LocalizedAudioClipEntry > entries = new List<LocalizedAudioClipEntry>()
 List of audio clip entries indexed by unique key.
 

Detailed Description

ScriptableObject that stores a list of localized audio clip entries.

Each entry links a unique key to a LocalizedAudioClip, which contains audio clips for different languages. These clips can be embedded directly or resolved via a key through the LocalizationManager.

This asset is referenced by the LocalizationManager to retrieve localized audio clips based on a language and a unique key.

Example usage:

  1. Create a new asset via the Unity menu: Assets > Create > Localization > Localized Audio Clips Data
  2. Add entries such as:
    • Key: "voice.intro.welcome"
    • Assign audio clips for each supported language
  3. Use the key in a component like: LocalizedAudio.localizationKey = "voice.intro.welcome";

When the language is changed using LocalizationManager.SetLanguage(), the appropriate audio clip is automatically applied.

Member Data Documentation

◆ entries

List<LocalizedAudioClipEntry> Backbone::LocalizedAudioClipsData::entries = new List<LocalizedAudioClipEntry>()

List of audio clip entries indexed by unique key.


The documentation for this class was generated from the following file: