Backbone - Localization
 
Loading...
Searching...
No Matches
Backbone Namespace Reference

Classes

class  CSVManager
 Static utility class for importing and exporting localized data from and to CSV files. More...
 
class  LocalizationConfig
 Global configuration asset that defines the list of supported languages for localization. More...
 
class  LocalizationManagerEditor
 
class  LocalizationSettings
 
class  LocalizedAudio
 Automatically updates the AudioSource's clip with a localized AudioClip from the LocalizationManager. More...
 
class  LocalizedAudioClip
 Represents an audio clip localized by language, either through direct assignment or via a global key. More...
 
class  LocalizedAudioClipDrawer
 
class  LocalizedAudioClipsData
 ScriptableObject that stores a list of localized audio clip entries. More...
 
class  LocalizedAudioClipsDataEditor
 
class  LocalizedImage
 Automatically updates a UI Image component with a localized sprite from the LocalizationManager. More...
 
class  LocalizedMaterial
 Automatically updates the main texture of a material using a localized texture from the LocalizationManager based on the current language. More...
 
class  LocalizedRawImage
 Automatically updates a UI RawImage component with a localized texture from the LocalizationManager, based on the current language. More...
 
class  LocalizedSprite
 Represents a sprite localized by language, either through direct assignment or via a global key. More...
 
class  LocalizedSpriteDrawer
 
class  LocalizedSpriteRenderer
 Automatically updates a SpriteRenderer component with a localized sprite from the LocalizationManager based on the current language. More...
 
class  LocalizedSpritesData
 ScriptableObject that stores a list of localized sprite entries. More...
 
class  LocalizedSpritesDataEditor
 
class  LocalizedString
 
class  LocalizedStringDrawer
 
class  LocalizedStringsData
 ScriptableObject that stores a list of localized text entries. More...
 
class  LocalizedStringsDataEditor
 
class  LocalizedText
 Automatically updates a legacy UnityEngine.UI.Text component with a localized string. More...
 
class  LocalizedTexture
 Represents a texture localized by language, either through a global key or direct per-language assignment. More...
 
class  LocalizedTextureDrawer
 
class  LocalizedTexturesData
 ScriptableObject that stores a list of localized texture entries. More...
 
class  LocalizedTexturesDataEditor
 
class  LocalizedTMP_Text
 Automatically updates a TMP_Text component with a localized string from the LocalizationManager, based on the current language. More...
 

Enumerations

enum  LocalizationDataType { Strings , Sprites , Textures , AudioClips }
 

Functions

void Awake ()
 
static List< string > GetAllKeys (LocalizationDataType type)
 
static void InvalidateKeyCache ()
 
void SetLanguage (string language)
 
bool TryGetLocalizedString (string key, out string localizedString)
 
string GetLocalizedStringValue (string key)
 
bool TryGetLocalizedSprite (string key, out Sprite localizedSprite)
 
Sprite GetLocalizedSpriteValue (string key)
 
bool TryGetLocalizedTexture (string key, out Texture localizedTexture)
 
Texture GetLocalizedTextureValue (string key)
 
bool TryGetLocalizedAudioClip (string key, out AudioClip localizedAudioClip)
 
AudioClip GetLocalizedAudioClipValue (string key)
 

Variables

enum Backbone::LocalizationDataType MonoBehaviour
 
enum Backbone::LocalizationDataType OnLanguageChanged
 
string currentLanguage = "English"
 
List< LocalizedStringsDatalocalizedStringDataList = new List<LocalizedStringsData>()
 
List< LocalizedSpritesDatalocalizedSpriteDataList = new List<LocalizedSpritesData>()
 
List< LocalizedTexturesDatalocalizedTextureDataList = new List<LocalizedTexturesData>()
 
List< LocalizedAudioClipsDatalocalizedAudioClipDataList = new List<LocalizedAudioClipsData>()
 
static LocalizationManager instance
 
static readonly Dictionary< LocalizationDataType, List< string > > keyCache = new()
 
Backbone::LocalizedAudioClipsData key
 Represents a single entry of localized audio clip data associated with a unique key.
 
LocalizedAudioClip localizedAudioClip
 The localized audio clip values, defined per language or resolved via key.
 
LocalizedSprite localizedSprite
 The localized sprite values, either assigned per language or fetched via the key.
 
LocalizedString localizedString
 The localized string, either with inline values or resolved through LocalizationManager.
 
LocalizedTexture localizedTexture
 The localized texture values, either assigned per language or fetched via the key.
 

Enumeration Type Documentation

◆ LocalizationDataType

Enumerator
Strings 
Sprites 
Textures 
AudioClips 

Function Documentation

◆ Awake()

void Backbone::Awake ( )
private

◆ GetAllKeys()

static List< string > Backbone::GetAllKeys ( LocalizationDataType type)
static

◆ GetLocalizedAudioClipValue()

AudioClip Backbone::GetLocalizedAudioClipValue ( string key)

◆ GetLocalizedSpriteValue()

Sprite Backbone::GetLocalizedSpriteValue ( string key)

◆ GetLocalizedStringValue()

string Backbone::GetLocalizedStringValue ( string key)

◆ GetLocalizedTextureValue()

Texture Backbone::GetLocalizedTextureValue ( string key)

◆ InvalidateKeyCache()

static void Backbone::InvalidateKeyCache ( )
static

◆ SetLanguage()

void Backbone::SetLanguage ( string language)

◆ TryGetLocalizedAudioClip()

bool Backbone::TryGetLocalizedAudioClip ( string key,
out AudioClip localizedAudioClip )

◆ TryGetLocalizedSprite()

bool Backbone::TryGetLocalizedSprite ( string key,
out Sprite localizedSprite )

◆ TryGetLocalizedString()

bool Backbone::TryGetLocalizedString ( string key,
out string localizedString )

◆ TryGetLocalizedTexture()

bool Backbone::TryGetLocalizedTexture ( string key,
out Texture localizedTexture )

Variable Documentation

◆ currentLanguage

string Backbone::currentLanguage = "English"

◆ instance

LocalizationManager Backbone::instance
static
Initial value:
{
get
{
if (_instance == null)
{
_instance = FindAnyObjectByType<LocalizationManager>();
}
return _instance;
}
}
private static LocalizationManager _instance

◆ key

Represents a single entry of localized audio clip data associated with a unique key.

A single entry containing a key and its associated LocalizedTexture.

Represents a single localized string entry. The key is used to reference the string, and localizedString holds language-specific values either inline or resolved via key.

A single entry containing a key and its associated LocalizedSprite.

Unique identifier for the audio clip (e.g., "dialogue.chapter1.start").

Unique key to identify the localized sprite (e.g., "game.logo").

Unique identifier for this string (e.g., "ui.button.exit").

Unique key to identify the localized texture (e.g., "game.menu.bg").

◆ keyCache

readonly Dictionary<LocalizationDataType, List<string> > Backbone::keyCache = new()
staticprivate

◆ localizedAudioClip

LocalizedAudioClip Backbone::localizedAudioClip

The localized audio clip values, defined per language or resolved via key.

◆ localizedAudioClipDataList

List<LocalizedAudioClipsData> Backbone::localizedAudioClipDataList = new List<LocalizedAudioClipsData>()
private

◆ localizedSprite

LocalizedSprite Backbone::localizedSprite

The localized sprite values, either assigned per language or fetched via the key.

◆ localizedSpriteDataList

List<LocalizedSpritesData> Backbone::localizedSpriteDataList = new List<LocalizedSpritesData>()
private

◆ localizedString

LocalizedString Backbone::localizedString

The localized string, either with inline values or resolved through LocalizationManager.

◆ localizedStringDataList

List<LocalizedStringsData> Backbone::localizedStringDataList = new List<LocalizedStringsData>()
private

◆ localizedTexture

LocalizedTexture Backbone::localizedTexture

The localized texture values, either assigned per language or fetched via the key.

◆ localizedTextureDataList

List<LocalizedTexturesData> Backbone::localizedTextureDataList = new List<LocalizedTexturesData>()
private

◆ MonoBehaviour

enum Backbone::LocalizationDataType Backbone::MonoBehaviour

◆ OnLanguageChanged

enum Backbone::LocalizationDataType Backbone::OnLanguageChanged