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

ScriptableObject that stores a list of localized text entries. More...

Inheritance diagram for Backbone::LocalizedStringsData:

Public Attributes

List< LocalizedStringEntry > entries = new List<LocalizedStringEntry>()
 List of entries, each mapping a unique key to a LocalizedString.
 

Detailed Description

ScriptableObject that stores a list of localized text entries.

Each entry contains a unique key and a LocalizedString, which holds localized versions of the string for different languages.

This asset can be referenced by the LocalizationManager to resolve text strings at runtime or in the editor.

Example:

  1. Create a new LocalizedStringsData asset via the Unity menu: Assets > Create > Localization > Localized Strings Data
  2. In the inspector, add new entries:
    • key: "menu.title"
    • localizedString.values: Add values for "English", "Spanish", etc.
  3. Use the key in your localized components: LocalizedText.localizationKey = "menu.title";

The LocalizationManager will use this asset to find and return the correct string.

Member Data Documentation

◆ entries

List<LocalizedStringEntry> Backbone::LocalizedStringsData::entries = new List<LocalizedStringEntry>()

List of entries, each mapping a unique key to a LocalizedString.


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