Get All Keys and Values in Edit Mode

Hello!

Can you please tell me how to get all the keys and values in edit mode

For example:

var table = LocalizationSettings.StringDatabase.GetTable("TableName", LocalizationSettings.AvailableLocales.GetLocale("en"));

var key = table.GetKeys();
for (int i = 0; i < key .Count; i++)
{                       
        Debug.Log(key [i]);   //advice_awards                  
}

var value= table.GetValues();
for (int i = 0; i < values.Count; i++)
{                       
    Debug.Log(value[i]);// Youc can see your awards...            
}

Thanks!

7970379--1022391--Screenshot_1.png

Is this an editor-only class or something that will run in the player?
For editor, only you can use the StringTableCollection.

Something like this Class LocalizationEditorSettings | Localization | 1.2.1

1 Like

Yes! Thank you!