No text after switching to Text Mesh Pro

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Fullen
Posts: 5
Joined: Wed Apr 20, 2022 1:41 am

No text after switching to Text Mesh Pro

Post by Fullen »

Hey!

I just wanted to change my subtitle text to TMP so following the documentation I enabled the setting in the welcome window and then re-imported the scripts folder. After that, the TMP field did appear and I selected the TMP text component, but now I don't see any text on my textbox. (Although the text IS being set when inspecting the dialogue box).

What am I missing?

Image


Image
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: No text after switching to Text Mesh Pro

Post by Tony Li »

Hi,

It looks like you've set up everything correctly so far. Inspect your TMP and try to identify what its bounds are. It may be offscreen, or too small for the size 18 text to fit, or something like that. I see that its Rect Transform has the default 100x100 size, so the most likely issue is that the Scroll Content's Vertical Layout Group isn't affecting it for some reason.
Fullen
Posts: 5
Joined: Wed Apr 20, 2022 1:41 am

Re: No text after switching to Text Mesh Pro

Post by Fullen »

Hey Tony!

Unfortunately, the 100x100 was the Subtitle Panel Info size, it doesn't seem to be related. (I did try making it bigger just in case anyways, no luck)

In fact, if I change the font size the dialogue text does change and adapt to the proper size it should be (see images), it's just as if the text is just invisible or something.

Note that the response text was left as regular text instead of TMP, but when I updated the scripts that stopped showing up as well. Maybe there's something else I'm supposed to assign somewhere that I'm forgetting?

Image

Image
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: No text after switching to Text Mesh Pro

Post by Tony Li »

Would it be possible for you to send a reproduction project to tony (at) pixelcrushers.com?

Are there any errors or warnings in the Console window?

Does your TMPro text appear at design time (i.e., when you're editing the UI)?

Does your BKANT font setup work properly with TMPro?

Here's an example scene using Runic and TMPro:

DS_TestRunicTMPro_2022-04-22.unitypackage
Fullen
Posts: 5
Joined: Wed Apr 20, 2022 1:41 am

Re: No text after switching to Text Mesh Pro

Post by Fullen »

Hey Tony!

I'm very sorry to have taken your time, and I really appreciate the example file you attached.

I got it to work, and I'm ashamed to say I think the only problem was that I had the regular Typewriter component (albeit disabled) still on my subtitle text object. Originally I thought just having it disabled and adding the new one would be fine, but now that I properly took it off everything seems to be working just fine.

Since you are likely to read this message I would like to ask an additional unrelated question you don't mind. After the NPC dialogue is finished (or skipped) it takes like a second for the response options to appear. I'm guessing this is a simple setting somewhere I'm missing. Could you point me in the right direction with this?

Thanks!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: No text after switching to Text Mesh Pro

Post by Tony Li »

Hi,

Quick answer: Inspect the Dialogue Manager GameObject, and set Display Settings > Subtitle Settings > Subtitle Chars Per Second to 50. Set Min Subtitle Seconds to 0.5.

You can find an explanation and tips here: How To: Match Typewriter Speed & Subtitle Display Duration
Post Reply