Assets/Editor/UIComponent/TextExEditor.cs
@@ -1,4 +1,5 @@ using UnityEditor; using UnityEngine; [CustomEditor(typeof(TextEx),true),CanEditMultipleObjects] public class TextExEditor:UnityEditor.UI.TextEditor { @@ -8,6 +9,7 @@ EditorGUILayout.Space(); TextEx text = target as TextEx; text.isKey = EditorGUILayout.Toggle("是语言表ID",text.isKey); //text.keyName = EditorGUILayout.TextField(text.keyName, GUILayout.Width(200)); text.colorType = (TextColType)EditorGUILayout.EnumPopup("颜色类型", text.colorType); }