Exemple #1
0
        public static string EditorGetLocalization(LocalizedString str, Language language = Language.English)
        {
            if (editorInstance == null)
            {
                editorInstance = UnityEditor.AssetDatabase.LoadAssetAtPath <LocalizationData>(AssetPath);
                if (editorInstance == null)
                {
                    return(str.LocalizationID);
                }
            }

            return(editorInstance.GetLocalization(str, language));
        }
 public string GetString(LocalizedString str)
 {
     return(LocalizationData.GetLocalization(str, currentLanguage));
 }