少年修仙传客户端基础资源
hch
2023-06-14 233f4cc3588e2bf43cdd7cdbf4e5e4ad9585d46d
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);
    }