참치김밥은 최고의 한식이다

[유니티] TMP_Text와 TextMeshProUGUI의 차이? 본문

Unity

[유니티] TMP_Text와 TextMeshProUGUI의 차이?

l__j__h 2023. 12. 11. 16:33

출처 : https://stackoverflow.com/questions/74794271/what-is-the-difference-between-tmp-text-and-textmeshprougui

 

What is the difference between TMP_Text and TextMeshProUGUI?

While making a game with Unity, I was curious about the difference between TMP_Text and TextMeshProUGUI in TMPro. Please let me know what is different from each other. I'd appreciate an example of ...

stackoverflow.com

 

TMP_Text는 아래 2개 클래스의 베이스 클래스입니다.

- TextMeshProUGUI (UI.Text의 대체재)

- TextMeshPro - (TextMesh의 대체재)

 

따라서, 코드를 좀 더 generic하게 쓰고 싶다면, 또는 향후 어떤 텍스트 클래스를 쓸지 정해두지 않았다면 TMP_Text를 통해 위 두 개에 대한 선택지를 모두 열어둘 수 있습니당.

728x90