Text Mesh Pro Implementation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Omniclause
Posts: 6
Joined: Sun Oct 17, 2021 8:30 pm

Text Mesh Pro Implementation

Post by Omniclause »

Sorry if this has been asked before but I have searched diligently without finding a solution. Is it possible to use text mesh pro in a prefab dialog ui. I'm currently on the 2022 long term stable version of unity and the current version of the dialogue system. Im using the basic standard dialog ui. My best case scenario would be to replace the text for the subtitle panel and the npc name panel with a text mesh pro text object but understand that is likely impossible. Via the documentation I have seen that there is a text mesh pro demo in the third party support folder but unfortunately it doesn't show up in my folder. Is there anyway with this asset to use a boilerplate type ui with text mesh pro instead of the basic text that is default in unity?
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Text Mesh Pro Implementation

Post by Tony Li »

Hi,

Your best case scenario is the correct way to do it. Here are the steps:

1. In the Dialogue System Welcome Window, tick the TMP_PRESENT checkbox.

2. In your dialogue UI (or any other Dialogue System UI), remove the Text GameObject that you want to replace, and add a TextMeshProUGUI GameObject in its place.

3. Assign the TextMeshProUGUI to the corresponding field in the Standard UI Subtitle Panel (e.g., Subtitle Text field), Standard UI Menu Panel, or Standard UI Response Button.

4. If you're replacing a subtitle text field and you want to use a typewriter effect, add a TextMesh Pro Typewriter Effect component to it.

5. If your continue button(s) use Standard UI Continue Button Fast Forward components, assign the subtitle text to the component.
Post Reply