diff --git a/Assets/Editor/I18NText/I18NTextInspector.cs b/Assets/Editor/I18NText/I18NTextInspector.cs index 87ab10e52fe5fcbdb514a9fa193534ed6a898664..e756027eb480812d11d0727832b3648ed10aa874 100644 --- a/Assets/Editor/I18NText/I18NTextInspector.cs +++ b/Assets/Editor/I18NText/I18NTextInspector.cs @@ -35,26 +35,5 @@ public class I18NTextInspector : Editor GUILayout.EndHorizontal(); } - [MenuItem("GameObject/UI/I18NText (多语言文本)", false)] - static void CreateI18NText() - { - if (null == Selection.activeObject || Selection.activeObject.GetType() != typeof(GameObject)) - { - GameLogger.LogError("请在Hierarchy视图的某个GameObject节点上右键鼠标"); - return; - } - I18N.instance.Init(); - var parent = ((GameObject)(Selection.activeObject)).transform; - var go = new GameObject("I18NText"); - - go.AddComponent(); - go.transform.SetParent(parent, false); - var text = go.AddComponent(); - text.color = Color.black; - text.fontSize = 22; - text.alignment = TextAnchor.MiddleCenter; - text.i18NId = 1; - - text.Refresh(); - } + }