Skip to content

Commit efcb337

Browse files
committed
fix: Also change the cast value
1 parent 1ada8e3 commit efcb337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/JCSUnity/Scripts/JCS_UnityObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public virtual void UpdateUnityData()
108108
break;
109109
#if TMP_PRO
110110
case JCS_UnityObjectType.TMP:
111-
this.mTextMesh = this.GetComponent<TextMeshPro>();
111+
this.mTextMesh = this.GetComponent<TMP_Text>();
112112
break;
113113
#endif
114114
}
@@ -221,7 +221,7 @@ public Component LocalType
221221
break;
222222
#if TMP_PRO
223223
case JCS_UnityObjectType.TMP:
224-
this.mTextMesh = (TextMeshPro)value;
224+
this.mTextMesh = (TMP_Text)value;
225225
break;
226226
#endif
227227
}

0 commit comments

Comments
 (0)