Esempio n. 1
0
        private static void RemoveConfigKey(UnityEditor.MenuCommand cmd)
        {
            UITextLocalization current = cmd.context as UITextLocalization;

            if (current == null)
            {
                return;
            }

            current.RemoveConfigKey();
            Debug.Log("移除配置表关键字完成!");
        }
Esempio n. 2
0
        private static void GenTextLocalization(UnityEditor.MenuCommand cmd)
        {
            UITextLocalization current = cmd.context as UITextLocalization;

            if (current == null)
            {
                return;
            }

            current.GenTextLocalization();
            AssetDatabase.Refresh();
            Debug.Log("生成配置表关键字完成!");
        }