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?
No text after switching to Text Mesh Pro
Re: No text after switching to Text Mesh Pro
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.
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.
Re: No text after switching to Text Mesh Pro
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?
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?
Re: No text after switching to Text Mesh Pro
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
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
Re: No text after switching to Text Mesh Pro
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!
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!
Re: No text after switching to Text Mesh Pro
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
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