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

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

Inheritance diagram for Backbone::LocalizedTexturesData:

Public Attributes

List< LocalizedTextureEntry > entries = new List<LocalizedTextureEntry>()
 List of texture entries indexed by unique key.
 

Detailed Description

ScriptableObject that stores a list of localized texture entries.

Each entry maps a unique key to a LocalizedTexture, which contains language-specific texture assignments. These can be defined inline or resolved via key.

This asset is used by the LocalizationManager to retrieve textures based on language and key.

Example usage:

  1. Create a new asset via the Unity menu: Assets > Create > Localization > Localized Textures Data
  2. Add entries such as:
    • Key: "ui.background.menu"
    • Localized Texture values: Set textures for "English", "Spanish", etc.
  3. Use the key in a localized component like: LocalizedRawImage.localizationKey = "ui.background.menu";

When the language is changed via LocalizationManager.SetLanguage(), the correct texture will be resolved automatically.

Member Data Documentation

◆ entries

List<LocalizedTextureEntry> Backbone::LocalizedTexturesData::entries = new List<LocalizedTextureEntry>()

List of texture entries indexed by unique key.


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