Alternative to LocalizationEditorSettings.GetStringTableCollection in build

Hi, Iā€™m using the following code to check if a specific entry is smart or not:

var collection = LocalizationEditorSettings.GetStringTableCollection(tableName);
var englishTable = collection.StringTables[0];
var entry = englishTable.GetEntry(entryName);
var isSmart = entry.IsSmart;

The problem is that I cannot build the application because LocalizationEditorSettings can be used only in editor.

Is there an alternative to achieve the same solution?

Thank you :slight_smile:

You would call LocalizationSettings.StringDatabase.GetTable

1 Like

Thank you :slight_smile:

I used the following code:

LocalizationSettings.StringDatabase.GetTable(tableName).GetEntry(entryName).IsSmart
1 Like