private string GetPreviewText(string ID) { string[] settingsGUID = AssetDatabase.FindAssets(LocalizationManager.LOCALIZATION_SETTING_FILENAME, null); if (settingsGUID.Length > 0) { string settingPath = AssetDatabase.GUIDToAssetPath(settingsGUID[0]); LocalizationSettings localizationSettings = (LocalizationSettings)AssetDatabase.LoadAssetAtPath(settingPath, typeof(LocalizationSettings)); if (localizationSettings.GetLocalizedText("English", ID, out string resultLocalizedText)) { return(resultLocalizedText); } } return("N/A"); }
public bool GetLocalizedText(string ID, out string ResultLocalizedText) { return(LocalizationSettings.GetLocalizedText(_currentlySelectedLanguage, ID, out ResultLocalizedText)); }