private static void SaveCurrentView(UnityEditor.MenuCommand cmd) { LocalizationBase current = cmd.context as LocalizationBase; if (current == null) { return; } current.SaveView(current.currentLanguageType); EditorUtility.DisplayDialog("", "保存当前语言下的配置完成!", "OK"); }
private static void UpdateCurrentView(UnityEditor.MenuCommand cmd) { LocalizationBase current = cmd.context as LocalizationBase; if (current == null) { return; } current.transform.localPosition += Vector3.one; current.InitView(current.currentLanguageType); EditorUtility.DisplayDialog("", "刷新当前语言下的视图完成!", "OK"); current.transform.localPosition -= Vector3.one; //为了强制刷新 }