If I used TextMeshPro instead of just text - what would I need to change?

I seem to have quickly hit a snag because I wanted to use TMP instead of regular text in referencing at approx. 9:35

Do I just need to revert to text or can I keep using TMP?

1 Like

I am pretty sure you don’t need to change anything. Just add textmeshpro and use the advanced features going forward. It should not break existing code or text boxes

Hi SlackerProject,

I’m not sure if I understood Bryant correctly but you do need to change something in your code:

  1. Add the namespace TMPro at the top of your code.
  2. Replace the Text type with TextMeshProUGUI.

The rest should work automatically.

And in Unity, you have to replace the Text component with a TMP UI component. Don’t forget to reference the TMP object in your text variable (or however you named it), so you can access it during runtime.

Did this help?


See also:

1 Like

Yes it did! Thank you so much!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms