2025-08-06 10:56:25 +08:00
|
|
|
#if TEXTMESHPRO_SUPPORT
|
2025-02-07 16:15:34 +08:00
|
|
|
|
2025-08-06 10:56:25 +08:00
|
|
|
using UnityEditor;
|
2025-02-07 16:15:34 +08:00
|
|
|
namespace UnityEngine.UI
|
|
|
|
{
|
|
|
|
[CustomEditor(typeof(UXTextMeshPro), true)]
|
|
|
|
[CanEditMultipleObjects]
|
2025-07-28 20:52:34 +08:00
|
|
|
internal class UXTextMeshProEditor : TMPro.EditorUtilities.TMP_EditorPanelUI
|
2025-02-07 16:15:34 +08:00
|
|
|
{
|
|
|
|
private SerializedProperty text;
|
|
|
|
private SerializedProperty localizationID;
|
|
|
|
|
|
|
|
protected override void OnEnable()
|
|
|
|
{
|
|
|
|
text = serializedObject.FindProperty("m_text");
|
|
|
|
localizationID = serializedObject.FindProperty("m_localizationID");
|
|
|
|
base.OnEnable();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
{
|
|
|
|
serializedObject.Update();
|
|
|
|
|
|
|
|
|
2025-03-13 16:40:06 +08:00
|
|
|
EditorGUILayout.PropertyField(localizationID);
|
|
|
|
|
2025-02-07 16:15:34 +08:00
|
|
|
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
|
|
base.OnInspectorGUI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-08-06 10:56:25 +08:00
|
|
|
#endif
|