File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name": "GameFrameX.UI.UGUI.Editor",
3+ "rootNamespace": "",
34 "references": [
45 "GameFrameX.Editor",
56 "GameFrameX.UI.Runtime",
67 "GameFrameX.UI.UGUI.Runtime",
7- "GameFrameX.Runtime"
8+ "GameFrameX.Runtime",
9+ "Unity.TextMeshPro"
810 ],
911 "includePlatforms": [
1012 "Editor"
1517 "precompiledReferences": [],
1618 "autoReferenced": true,
1719 "defineConstraints": [],
18- "versionDefines": [],
20+ "versionDefines": [
21+ {
22+ "name": "com.unity.textmeshpro",
23+ "expression": "",
24+ "define": "ENABLE_UI_TEXT_MESH_PRO"
25+ }
26+ ],
1927 "noEngineReferences": false
2028}
Original file line number Diff line number Diff line change 3535using System . Text ;
3636using GameFrameX . Runtime ;
3737using GameFrameX . UI . UGUI . Runtime ;
38+ #if ENABLE_UI_TEXT_MESH_PRO
39+ using TMPro ;
40+ #endif
3841using UnityEditor ;
3942using UnityEngine ;
4043using UnityEngine . EventSystems ;
@@ -460,6 +463,30 @@ private static string ConvertType(Transform transform)
460463 {
461464 return typeof ( Image ) . FullName ;
462465 }
466+ #if ENABLE_UI_TEXT_MESH_PRO
467+ component = transform . GetComponent < TextMeshProUGUI > ( ) ;
468+ if ( component != null )
469+ {
470+ return typeof ( TextMeshProUGUI ) . FullName ;
471+ }
472+
473+ component = transform . GetComponent < TMP_InputField > ( ) ;
474+ if ( component != null )
475+ {
476+ return typeof ( TMP_InputField ) . FullName ;
477+ }
478+
479+ component = transform . GetComponent < TMP_Dropdown > ( ) ;
480+ if ( component != null )
481+ {
482+ return typeof ( TMP_Dropdown ) . FullName ;
483+ }
484+ #endif
485+ var rectTransform = transform . GetComponent < RectTransform > ( ) ;
486+ if ( rectTransform != null )
487+ {
488+ return typeof ( RectTransform ) . FullName ;
489+ }
463490
464491 return typeof ( Transform ) . FullName ;
465492 }
You can’t perform that action at this time.
0 commit comments