public static void Display(LocalizationSettingsWindow owner, LocalizationSettings settings) { if (!EditorPrefs.HasKey(Constants.SHOW_SPECIFIC_LOCALES_PREFS_KEY)) { EditorPrefs.SetBool(Constants.SHOW_SPECIFIC_LOCALES_PREFS_KEY, false); } var window = CreateInstance <AddLocaleWindow>(); window.settings = settings; window.owner = owner; window.titleContent = new GUIContent("Add Locale"); window.showSpecificLocales = EditorPrefs.GetBool(Constants.SHOW_SPECIFIC_LOCALES_PREFS_KEY); window.Initialize(); window.ShowModal(); }
private void OpenSettingsWindow() { LocalizationSettingsWindow.ShowWindow(); }