public override void OnInspectorGUI() { EditorGUILayout.LabelField(string.Format("Language name: {0}", _languageData.Language.Name)); EditorGUILayout.LabelField(string.Format("Cultures: {0}", _languageData.Language.Cultures.Count)); EditorGUILayout.LabelField(string.Format("Translations: {0}", _languageData.Language.RawTranslations.Count)); if (GUILayout.Button("Edit Language")) { SimpleLanguageEditWindow.ShowWindow(_languageData); } }
private void EditOrCreateLanguage(SimpleLanguageData languageData = null) { SimpleLanguageEditWindow.ShowWindow(languageData); }